# CVE-2026-87818: GitPython 3.1.59 Local File Content Oracle via --no-index

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.1.60 (CNA); fix release not confirmed
- Status: published
- Published: 2026-09-09 · Modified: 2026-10-08
- Aliases: GHSA-rw58-wc66-99g4, GHSA-whh4-5q6c-9v3x, PYSEC-2026-3983, UBUNTU-CVE-2026-87818, DEBIAN-CVE-2026-87818
- Record: https://cvemate.com/vulnerability/CVE-2026-87818 · JSON: https://cvemate.com/vulnerability/CVE-2026-87818/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- EPSS: 0.291%, percentile 23.327%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian python-git (Debian): All versions (No fix recorded) \| \< 3.1.30-1+deb12u3 \| \< 3.1.44-1+deb13u1 \| \< 3.1.61-1
- ubuntu python-git (Ubuntu): All versions (No fix recorded)
- gitpython\_project gitpython: \< 3.1.60
- gitpython-developers gitpython: ≥ 3.1.59, \< 3.1.60
- PyPI gitpython (PyPI): ≥ 3.1.59 (No fix recorded) \| ≥ 3.1.59, \< 3.1.60

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-whh4-5q6c-9v3x>
- <https://www.vulncheck.com/advisories/gitpython-3.1.59-local-file-content-oracle-via-no-index>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-87818>
- <https://github.com/gitpython-developers/GitPython/pull/2217>
- <https://github.com/gitpython-developers/GitPython/commit/09f2cf383a992d1af697364569e9f384748c1bd8>
- <https://github.com/gitpython-developers/GitPython>
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.60>
- <https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3983.yaml>
- <https://github.com/advisories/GHSA-rw58-wc66-99g4>
- <https://ubuntu.com/security/CVE-2026-87818>
- <https://www.cve.org/CVERecord?id=CVE-2026-87818>
- <https://security-tracker.debian.org/tracker/CVE-2026-87818>

---

Data as of 2026-12-05T06:45:19.103Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
