CVE-2026-87818 GitPython 3.1.59 Local File Content Oracle via --no-index
HighCVSS 7.1
EPSS 0.41%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
15 packages: 5 fixed, 1 partially fixed, 9 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/ansible-automation-platform-25/hub-rhel8(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/hub-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/python3.12-gitpython(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/python3.12-gitpython(Red Hat satellite 6) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| ubuntu/python-git(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/python-git(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/python-git(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| pypi gitpython(PyPI) | = 3.1.59; = 3.1.60; = 3.1.61; = 3.1.62 +3 more | 3.1.60 | Partially fixed |
| debian/python-git(Debian 12) | < 3.1.30-1+deb12u3; = 3.1.30-1; = 3.1.30-1+deb12u2 | 3.1.30-1+deb12u3 | Fixed |
| debian/python-git(Debian 13) | < 3.1.44-1+deb13u1; = 3.1.44-1 | 3.1.44-1+deb13u1 | Fixed |
| debian/python-git(Debian 14) | < 3.1.61-1; = 3.1.44-1; = 3.1.45-1; = 3.1.46-1 +1 more | 3.1.61-1 | Fixed |
| gitpython project gitpython | < 3.1.60 | 3.1.60 | Fixed |
| pypi gitpython | >= 3.1.59, < 3.1.60 | 3.1.60 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi gitpython(PyPI) | >= 3.1.59 | No fix listed |
| pypi gitpython(PyPI) | = 3.1.59 | No fix listed |
| pypi gitpython(PyPI) | = 3.1.60 | No fix listed |
| pypi gitpython(PyPI) | = 3.1.61 | No fix listed |
| pypi gitpython(PyPI) | = 3.1.62 | No fix listed |
| pypi gitpython(PyPI) | = 3.2.0 | No fix listed |
| pypi gitpython(PyPI) | >= 3.1.59, < 3.1.60 | 3.1.60 |
| pypi gitpython | >= 3.1.59, < 3.1.60 | 3.1.60 |
| redhat/ansible-automation-platform-25/hub-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/hub-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/python3.12-gitpython(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/python3.12-gitpython(Red Hat:satellite:6) | All versions | No fix listed |
| debian/python-git(Debian:12) | < 3.1.30-1+deb12u3 | 3.1.30-1+deb12u3 |
| debian/python-git(Debian:12) | = 3.1.30-1 | No fix listed |
| debian/python-git(Debian:12) | = 3.1.30-1+deb12u2 | No fix listed |
| debian/python-git(Debian:13) | < 3.1.44-1+deb13u1 | 3.1.44-1+deb13u1 |
| debian/python-git(Debian:13) | = 3.1.44-1 | No fix listed |
| debian/python-git(Debian:14) | < 3.1.61-1 | 3.1.61-1 |
| debian/python-git(Debian:14) | = 3.1.44-1 | No fix listed |
| debian/python-git(Debian:14) | = 3.1.45-1 | No fix listed |
| debian/python-git(Debian:14) | = 3.1.46-1 | No fix listed |
| debian/python-git(Debian:14) | = 3.1.50-1 | No fix listed |
| ubuntu/python-git(Ubuntu:22.04) | All versions | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/python-git(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/python-git(Ubuntu:26.04) | All versions | No fix listed |
| gitpython project gitpython | < 3.1.60 | 3.1.60 |
References
- GitHub Security Advisory (GHSA-whh4-5q6c-9v3x) exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- VulnCheck Advisory: GitPython 3.1.59 Local File Content Oracle via --no-index third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com product
- github.com
- github.com
- github.com vendor-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2530755 issue-tracking
- www.cve.org
- github.com
- Debian Security Tracker CVE-2026-87818 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-74844 third-party-advisory