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

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-09T11:21:04.681Z
- Modified: 2026-10-08T15:25:57.055Z
- Also known as: GHSA-rw58-wc66-99g4, GHSA-whh4-5q6c-9v3x, PYSEC-2026-3983
- Weaknesses: CWE-88, CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- gitpython-developers GitPython: from 3.1.59 before 3.1.60 (not affected: 3.1.60)
- gitpython (PyPI): from 3.1.59; from 3.1.59 before 3.1.60
- gitpython_project gitpython: before 3.1.60

## Every score

- VulnCheck: CVSS:4.0 7.1 High `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`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`
- PyPA Advisory Database: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-whh4-5q6c-9v3x> (exploit, evidence, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/gitpython-3.1.59-local-file-content-oracle-via-no-index> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-87818> (advisory)
- <https://github.com/gitpython-developers/GitPython/pull/2217> (web)
- <https://github.com/gitpython-developers/GitPython/commit/09f2cf383a992d1af697364569e9f384748c1bd8> (web)
- <https://github.com/gitpython-developers/GitPython> (package)
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.60> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3983.yaml> (web)
- <https://github.com/advisories/GHSA-rw58-wc66-99g4> (advisory)

## Sources

- CVE List: [CVE-2026-87818](https://www.cve.org/CVERecord?id=CVE-2026-87818), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-rw58-wc66-99g4](https://github.com/advisories/GHSA-rw58-wc66-99g4), CC-BY-4.0, modified 2026-09-30
- GitHub Advisory Database: [GHSA-whh4-5q6c-9v3x](https://github.com/advisories/GHSA-whh4-5q6c-9v3x), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-87818](https://nvd.nist.gov/vuln/detail/CVE-2026-87818), Public domain, modified 2026-09-16
- PyPA Advisory Database: [PYSEC-2026-3983](https://osv.dev/vulnerability/PYSEC-2026-3983), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-87818 · Whole record: https://cve.day/CVE-2026-87818.json · Rebuilt by cve.day 2026-11-25T22:59:37.734Z
