CVE-2026-76217: External Control of File Name or Path in gitpython-developers GitPython
GitPython versions before 3.1.58 contain a vulnerability where the options passed to git rm and git checkout commands in IndexFile.remove() and Head.checkout() are not properly validated. This allows attackers with limited privileges to supply specific parameters that can cause the process to read arbitrary files, with the contents exposed in error output.
AI Analysis
Technical Summary
The vulnerability in GitPython prior to version 3.1.58 involves improper validation of options passed to the git rm and git checkout commands within the IndexFile.remove() and Head.checkout() methods. Specifically, attackers can supply the --pathspec-from-file and --pathspec-file-nul parameters, which are intended to specify file paths from a file input. Due to lack of validation, this can be exploited to read arbitrary files accessible to the process. The full contents of these files are returned in the GitCommandError.stderr output, potentially exposing sensitive information. The CVSS 4.0 base score is 7.1, indicating a high severity vulnerability with network attack vector, low attack complexity, no privileges required beyond local user, no user interaction, and high impact on confidentiality.
Potential Impact
An attacker with local privileges can exploit this vulnerability to read arbitrary files accessible to the GitPython process. This can lead to unauthorized disclosure of sensitive information through error messages. There is no indication of privilege escalation, integrity, or availability impact. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid running untrusted code or inputs that could exploit the git rm and git checkout commands in affected GitPython versions. Monitor vendor channels for updates and apply patches once released.
CVE-2026-76217: External Control of File Name or Path in gitpython-developers GitPython
Description
GitPython versions before 3.1.58 contain a vulnerability where the options passed to git rm and git checkout commands in IndexFile.remove() and Head.checkout() are not properly validated. This allows attackers with limited privileges to supply specific parameters that can cause the process to read arbitrary files, with the contents exposed in error output.
CVSS v4.0
Score 7.1high
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
The vulnerability in GitPython prior to version 3.1.58 involves improper validation of options passed to the git rm and git checkout commands within the IndexFile.remove() and Head.checkout() methods. Specifically, attackers can supply the --pathspec-from-file and --pathspec-file-nul parameters, which are intended to specify file paths from a file input. Due to lack of validation, this can be exploited to read arbitrary files accessible to the process. The full contents of these files are returned in the GitCommandError.stderr output, potentially exposing sensitive information. The CVSS 4.0 base score is 7.1, indicating a high severity vulnerability with network attack vector, low attack complexity, no privileges required beyond local user, no user interaction, and high impact on confidentiality.
Potential Impact
An attacker with local privileges can exploit this vulnerability to read arbitrary files accessible to the GitPython process. This can lead to unauthorized disclosure of sensitive information through error messages. There is no indication of privilege escalation, integrity, or availability impact. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid running untrusted code or inputs that could exploit the git rm and git checkout commands in affected GitPython versions. Monitor vendor channels for updates and apply patches once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-19T11:35:13.689Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a85bc7aacd9273b492f49b6
Added to database: 08/19/2026, 14:23:54 UTC
Last enriched: 08/19/2026, 14:54:23 UTC
Last updated: 08/19/2026, 17:55:42 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.