All vulnerabilities

PyPI

CVE-2026-110856

GitPython parse_actor_and_date() is vulnerable to quadratic backtracking on malformed identity lines

Severity
High
Published
27 Oct 2026
Last changed
27 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
3.2.0
Exploit chance
0.3% in the next 30 daysHigher than 20% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Regular expression denial of service (ReDoS) (CWE-1333)
Also known as
GHSA-m64x-33q8-m5h7
Sources
OSV.dev and GitHub

Description

This is a residual of GHSA-g5vv-9gxw-82hx / CVE-2026-87819. The 3.1.60 fix made Actor._from_string regex-free, but parse_actor_and_date still runs _re_actor_epoch on the same author/committer/tagger line one step earlier. That pattern backtracks quadratically when the trailing epoch or timezone is missing or malformed, so the same class of slow parse is still reachable in 3.1.62.

git/objects/util.py:322:

.+? and (.*) can both absorb the same run of spaces, and the required (\d+) ([+-]\d+) tail is only checked after them. On a long line with no valid tail, the search retries every split point.

It is called from parse_actor_and_date (git/objects/util.py:335), which runs on the author and committer lines in Commit._deserialize (git/objects/commit.py:917, :931) and on the tagger line in git/objects/tag.py:129.

The published payload (letters plus an unterminated <) is fast on 3.1.62. Replacing the letters with spaces is not:

Cost grows about 16x for each 4x increase in length.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
gitpythonPyPI · osv:PyPI:gitpython
  • Every version before 3.2.0

About gitpython

Weekly downloads (PyPI)
34,365,891PyPI Stats, 23 Nov 2026

References