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
- 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.
Affected software
| Software | Affected versions |
|---|---|
gitpythonPyPI · osv:PyPI:gitpython |
|
About gitpython
- Weekly downloads (PyPI)
- 34,365,891PyPI Stats, 23 Nov 2026
Vulnerabilities in gitpython
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 0
- High, last 12 months
- 4
- Known exploited
- 0
- CVE-2026-110859GitPython: arbitrary file read via attacker-controlled branch name in `Head.checkout()` (incomplete fix of CVE-2026-78679)High 27 Oct 2026
- CVE-2026-110860GitPython: Submodule.move() follows an attacker-committed intermediate symlink outside the worktreeMedium 27 Oct 2026
- CVE-2026-110858GitPython Remote.pull() refspec bypasses the --upload-pack unsafe-option guard, enabling arbitrary command executionHigh 8.1 27 Oct 2026
- CVE-2026-110857GitPython command wrappers omit unsafe protocol and option checksHigh 7.5 27 Oct 2026
- CVE-2026-110855GitPython: separate_git_dir leaks env vars via crafted .gitmodules submodule nameMedium 6.5 27 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-110856
- GitHub Advisory Database https://github.com/advisories/GHSA-m64x-33q8-m5h7