Medium severity6.5NVD Advisory· Published Sep 9, 2026· Updated Sep 16, 2026
CVE-2026-87818
CVE-2026-87818
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
gitpythonPyPI | >= 3.1.59 | — |
Affected products
3cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*+ 1 more
- cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*range: <3.1.60
- (no CPE)range: <3.1.59
Patches
Vulnerability mechanics
References
4- github.com/gitpython-developers/GitPython/security/advisories/GHSA-whh4-5q6c-9v3xnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-rw58-wc66-99g4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-87818ghsaADVISORY
- www.vulncheck.com/advisories/gitpython-3.1.59-local-file-content-oracle-via-no-indexnvdThird Party AdvisoryWEB
News mentions
1- GitPython: Three Vulnerabilities Including RCE and ReDoS Disclosed TogetherVypr Intelligence · Sep 9, 2026