CVE-2026-87818

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 a content-dependent Boolean oracle, repeatedly querying local files to recover single-line secrets through distinguishable success or error responses.

Affected Software

VendorProductVersion RangeStatus
gitpython-developersGitPython3.1.59 < 3.1.60affected
gitpython-developersGitPython3.1.60unaffected

Weaknesses

  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: poc
    • Automatable: no
    • Technical Impact: partial

References