Vulnerability · Published Sep 9, 2026 · Assigned by VulnCheck
CVE-2026-87818GitPython 3.1.59 Local File Content Oracle via --no-index
Medium 6.5
In plain English
A medium-severity argument injection in GitPython from gitpython-developers. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
GitPython 3.1.59 fails to restrict the --no-index option in the high-level diff API, allowing attackers to read arbitrary filesystem paths as repository operands. Attackers can combine --no-index with -I/--ignore-matching-lines to create a content-dependent Boolean oracle, repeatedly querying local files to recover single-line secrets through distinguishable success or error responses.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-git | 3.1.30-1+deb12u3 | DEBIAN-CVE-2026-87818 |
| Debian:13 | python-git | 3.1.44-1+deb13u1 | DEBIAN-CVE-2026-87818 |
| Debian:14 | python-git | 3.1.61-1 | DEBIAN-CVE-2026-87818 |
| PyPI | gitpython | no fix listed | GHSA-rw58-wc66-99g4 |
| PyPI | gitpython | 3.1.60 | GHSA-whh4-5q6c-9v3x |
| PyPI | gitpython | 3.1.60 | PYSEC-2026-3983 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | 3.1.59 – before 3.1.60 |
Weakness: CWE-88 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
References
- GitHub Security Advisory (GHSA-whh4-5q6c-9v3x) vendor-advisory
- VulnCheck Advisory: GitPython 3.1.59 Local File Content Oracle via --no-index third-party-advisory