ZeroHour

CVE-2026-87819

mass

Regular expression DoS (ReDoS) in GitPython commit author parsing

CVSS 4.0
8.7 high
EPSS
Published
()
Modified
AI analysis

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.

Affected
GitPython project (gitpython-developers / PyPI: GitPython) GitPythonall versions before 3.1.60
Estimated exposure
masswell over 1,000,000 installs/users (GitPython consistently ranks among the most-downloaded PyPI packages, with tens of millions of downloads per month) — Estimated from GitPython's standing as a top-downloaded, widely transitively depended-upon PyPI package, though only services that parse commit objects from attacker-influenced repositories are directly exploitable.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

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 news

No ingested article mentions this CVE yet.