CVE-2026-73620: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gitpython-developers GitPython
GitPython before 3.1.57 fails to guard git option forwarding in IndexFile.checkout() and TagReference.create(), allowing attackers to pass unsafe options via kwargs. Attackers can use --prefix to overwrite arbitrary files with repository content or -F to read arbitrary files returned in-band.
AI Analysis
Technical Summary
GitPython before version 3.1.57 does not properly restrict git option forwarding in the IndexFile.checkout() and TagReference.create() methods. Attackers can exploit this by passing unsafe options such as --prefix to overwrite arbitrary files with repository content or -F to read arbitrary files in-band. This improper limitation of pathname to a restricted directory constitutes a path traversal vulnerability.
Potential Impact
An attacker with at least limited privileges can leverage this vulnerability to overwrite arbitrary files on the filesystem or read arbitrary files, potentially leading to unauthorized data disclosure or modification within the environment where GitPython is used.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using untrusted input in git option forwarding within IndexFile.checkout() and TagReference.create().
CVE-2026-73620: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gitpython-developers GitPython
Description
GitPython before 3.1.57 fails to guard git option forwarding in IndexFile.checkout() and TagReference.create(), allowing attackers to pass unsafe options via kwargs. Attackers can use --prefix to overwrite arbitrary files with repository content or -F to read arbitrary files returned in-band.
CVSS v4.0
Score 7.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
GitPython before version 3.1.57 does not properly restrict git option forwarding in the IndexFile.checkout() and TagReference.create() methods. Attackers can exploit this by passing unsafe options such as --prefix to overwrite arbitrary files with repository content or -F to read arbitrary files in-band. This improper limitation of pathname to a restricted directory constitutes a path traversal vulnerability.
Potential Impact
An attacker with at least limited privileges can leverage this vulnerability to overwrite arbitrary files on the filesystem or read arbitrary files, potentially leading to unauthorized data disclosure or modification within the environment where GitPython is used.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using untrusted input in git option forwarding within IndexFile.checkout() and TagReference.create().
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-13T11:16:27.835Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7dbdfbbf8831d5393225f1
Added to database: 08/13/2026, 12:52:11 UTC
Last enriched: 08/13/2026, 12:56:27 UTC
Last updated: 08/13/2026, 18:14:35 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.