GitHub Advisory Database
GHSA-rw58-wc66-99g4
Duplicate Advisory: GitPython 3.1.59: --no-index bypasses diff unsafe-option protections and enables a blind local-file content oracle
This advisory was withdrawn on 30 September 2026.
Details
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-whh4-5q6c-9v3x. This link is maintained to preserve external references.
Original 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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | gitpython | From 3.1.59, no fix listed |