PyPA Advisory Database
PYSEC-2026-3983
This advisory was withdrawn on 1 October 2026.
Details
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 before 3.1.60 (fixed in 3.1.60) |