{"id":"CVE-2026-87818","title":"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","summary":"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…","severity":"medium","cvss":6.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","cwe":["CWE-88"],"vendor":"gitpython_project","product":"gitpython","affected":["gitpython < 3.1.60"],"patched":["gitpython 3.1.60"],"published":"2026-09-09","updated":"2026-09-16","sourceUpdated":"2026-09-16T15:12:45.633","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-87818","references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-whh4-5q6c-9v3x","label":"disclosure@vulncheck.com"},{"url":"https://www.vulncheck.com/advisories/gitpython-3.1.59-local-file-content-oracle-via-no-index","label":"disclosure@vulncheck.com"}],"tags":["nvd","cve.org","exploit-available","osv","pip"],"epss":0.0024,"epssPercentile":0.15427,"exploitAvailable":true,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-09T14:06:42.660856Z"},"ingestedAt":"2026-09-11T10:03:02.637Z","aliases":["PYSEC-2026-3983","GHSA-whh4-5q6c-9v3x"],"ecosystem":"pip","slug":"CVE-2026-87818","body":"## Overview\n\nGitPython 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.\n\n## Affected\n\n- `gitpython < 3.1.60`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `gitpython 3.1.60`\n\n## Package advisory (CVE-2026-87818)\n\nAffected packages:\n\n- `gitpython < 3.1.60`\n\nPatched in:\n\n- `gitpython 3.1.60`\n\nSource: https://osv.dev/vulnerability/PYSEC-2026-3983","depth":"twilight","depthScore":48,"depthScoreParts":{"impact":35.8,"likelihood":0,"exploitation":12,"ransomware":0},"changes":[{"seq":18374,"id":"CVE-2026-87818","ts":1788966800166,"field":"exploit_available","old":"false","new":"true"}]}