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.
Severity (CVSS)
| Base score | 7.1 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-88 — Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | 3.1.59 to <3.1.60; 3.1.60 |
References
Generated from the official CVE List on 10 Sep 2026 07:03 UTC.