CVE-2026-87819

GitPython before 3.1.60 Denial of Service via ReDoS

Published Sep 9, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

GitPython versions prior to 3.1.60 include a regular expression denial of service flaw in the Actor.name_email_regex component that processes commit author and committer strings. A crafted commit can contain an author field with an incomplete angle bracket, forcing the regex to engage in quadratic backtracking. This exhausts CPU resources for over two minutes per commit when accessed, effectively disrupting services that rely on GitPython for repository inspection or manipulation. The weakness is a classic ReDoS attack (CWE‑1333) and can lead to significant performance degradation or service unavailability.

Affected Systems

The affected product is the GitPython library provided by the gitpython‑developers. The vulnerability exists in all releases before 3.1.60. Systems that embed GitPython in their codebase (for example CI pipelines, hosting services, or custom git tools) are at risk if they use a pre‑3.1.60 build. No further product or version detail is recorded beyond the main library name.

Risk and Exploitability

The base score of 8.7 indicates high severity, but no EPSS score is available, meaning the current likelihood of exploitation is unclear. The vulnerability is not listed in the CISA KEV catalog, which suggests it is not a current, widely exploited exposure. The likely attack vector is a crafted commit object; the typical vector is either a local attacker who can inject commits into a repository that GitPython processes, or a remote attacker that can insert malicious commits through a buggy ingestion API. The exploitation would require the target to parse at least one malformed commit, after which the denial of service would manifest as a prolonged CPU spike.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the GitPython package to version 3.1.60 or later.
  • Restrict processing of commit metadata to trusted sources and sanitize or reject author/committer strings that do not match the required format.
  • If upgrading is not immediately possible, replace or patch the Actor.name_email_regex to use a non‑backtracking algorithm or limit input length, and monitor CPU usage for anomalous spikes.

Generated by OpenCVE AI on September 9, 2026 at 12:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4872-1 python-git security update
Github GHSA Github GHSA GHSA-g5vv-9gxw-82hx GitPython: Denial of Service via catastrophic backtracking (ReDoS) in Actor.name_email_regex — commit author/committer field parsing
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*
Type Values Removed Values Added
First Time appeared Gitpython-developers
Gitpython-developers gitpython
Vendors & Products Gitpython-developers
Gitpython-developers gitpython
Type Values Removed Values Added
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.
Title GitPython before 3.1.60 Denial of Service via ReDoS
First Time appeared Gitpython Project
Gitpython Project gitpython
Weaknesses CWE-1333
CPEs cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:*:*:*
Vendors & Products Gitpython Project
Gitpython Project gitpython
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, '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'}

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:25 PM
Reserved
Sep 9, 2026, 10:32 AM
Status
Analyzed
Published
Sep 9, 2026, 12:17 PM
Modified
Sep 18, 2026, 6:17 PM