CVE-2026-87819
massRegular expression DoS (ReDoS) in GitPython commit author parsing
GitPython before 3.1.60 contains a regular expression denial-of-service (ReDoS) flaw in Actor.name_email_regex, which parses commit author and committer fields. An attacker who can supply a crafted commit object—typically a commit pushed to or read from an untrusted repository with a malformed author line containing an unterminated angle bracket—triggers quadratic backtracking that consumes CPU for more than two minutes per commit access. The impact is availability only: parsing stalls and potential CPU resource exhaustion, with no confidentiality or integrity impact. Any deployment of an affected version that processes commits from untrusted or semi-trusted sources (CI pipelines, code search/indexing, repository viewers, git-based deployment tooling) is affected. As of publication there are no known in-the-wild exploits, no public proof-of-concept, and the flaw is not in CISA's KEV.
What to do: Upgrade to GitPython 3.1.60 or later. Until patched, restrict parsing of commit metadata to trusted repositories or apply timeouts/resource limits on processes reading third-party git history, and prioritize services that index or render untrusted repositories (CI, code search, hosting mirrors). The impact is availability-only (CVSS 8.7, VA:H), so patching urgency is highest for multi-tenant or internet-facing git-parsing services.
| GitPython project (gitpython-developers / PyPI: GitPython) GitPython | all versions before 3.1.60 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
GitPython before 3.1.60 contains a regular expression denial of service vulnerability in Actor.name_email_regex that processes commit author and committer fields. Attackers can craft a commit object with a malformed author field containing an unterminated angle bracket to cause quadratic backtracking, exhausting CPU resources for over two minutes per commit access.
- Weakness
- CWE-1333
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.