
CVE catalog
CVE-2026-87818
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
- Severity
- High · CVSS 7.1
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 - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.41% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-git | sid | 3.2.1-1 | fixed |
| Debian | python-git | forky | 3.2.1-1 | fixed |
| Debian | python-git | trixie | 3.1.44-1 | vulnerable |
| Debian | python-git | bookworm | 3.1.30-1+deb12u2 | vulnerable |
| Cpe | gitpython | Not reported | 3.1.60 | fixed |
| PyPI | gitpython | Not reported | 3.1.60 | fixed |
| Pip | gitpython | Not reported | 3.1.60 | fixed |
| Pip | gitpython | Not reported | Not reported | unknown |
| Ubuntu | python-git | pro | 3.1.44-1 | vulnerable |
| Ubuntu | python-git | pro | 3.1.45-1 | vulnerable |
| Ubuntu | python-git | pro | 3.1.46-1 | vulnerable |
| Ubuntu | python-git | pro | 3.1.46-1ubuntu0.1~esm1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-git | source | sid | 3.1.61-1 | not yet assigned | Not reported | Not reported |
| Debian | python-git | source | forky | 3.1.61-1 | not yet assigned | Not reported | Not reported |
| Debian | python-git | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | python-git | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Cpe | gitpython | cpe | Not reported | 3.1.60 | Not reported | NVD-CVE-2026-87818 | Not reported |
| PyPI | gitpython | PyPI | Not reported | 3.1.60 | Not reported | PYSEC-2026-3983 | Not reported |
| Pip | gitpython | pip | Not reported | 3.1.60 | Not reported | GHSA-WHH4-5Q6C-9V3X | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-git]Affected
Source package: [python-git]
Details (2)
3.1.30-1+deb12u2· all · bookwormAffected
nvd · python-git · debian · bookworm; nvd · python-git · debian · 12
3.1.30-1+deb12u2· all · bookwormAffected
nvd · python-git · debian · bookworm; nvd · python-git · debian · 12
- [python-git-doc]Affected
Source package: [python-git]
Details (2)
3.1.30-1+deb12u2· all · bookwormAffected
nvd · python-git · debian · bookworm; nvd · python-git · debian · 12
3.1.30-1+deb12u2· all · bookwormAffected
nvd · python-git · debian · bookworm; nvd · python-git · debian · 12
[Debian 13 (Trixie)]
- [python3-git]Affected
Source package: [python-git]
Details (2)
3.1.44-1· all · trixieAffected
nvd · python-git · debian · 13
3.1.44-1· all · trixieAffected
nvd · python-git · debian · 13
- [python-git-doc]Affected
Source package: [python-git]
Details (2)
3.1.44-1· all · trixieAffected
nvd · python-git · debian · 13
3.1.44-1· all · trixieAffected
nvd · python-git · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_4191-1.json]
- [https://github.com/advisories/GHSA-rw58-wc66-99g4]
- [https://github.com/advisories/GHSA-whh4-5q6c-9v3x]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-87818]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-87818]
- [https://osv.dev/vulnerability/PYSEC-2026-3983]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-87818]
- [https://security-tracker.debian.org/tracker/CVE-2026-87818]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-87818.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]