CVE-2026-76222: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gitpython-developers GitPython
GitPython before 3.1.58 fails to validate submodule names from .gitmodules files, allowing attackers to create Git repositories at arbitrary filesystem paths outside the intended clone directory. Attackers can craft malicious repositories with traversal sequences in submodule names that GitPython processes during submodule initialization, creating attacker-controlled Git repositories at escaped filesystem locations.
AI Analysis
Technical Summary
CVE-2026-76222 is a path traversal vulnerability in GitPython prior to version 3.1.58. The issue arises because GitPython fails to properly validate submodule names extracted from .gitmodules files. Attackers can exploit this by crafting malicious repositories with submodule names containing directory traversal sequences, causing GitPython to create Git repositories at unintended filesystem paths outside the target clone directory during submodule initialization.
Potential Impact
Successful exploitation enables attackers to create Git repositories at arbitrary filesystem paths outside the intended clone directory. This could lead to unauthorized file creation or modification in locations controlled by the attacker, potentially impacting system integrity or security depending on the environment where GitPython is used.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch link is provided, users should monitor the vendor's announcements for updates and avoid processing untrusted .gitmodules files until a fix is available.
CVE-2026-76222: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gitpython-developers GitPython
Description
GitPython before 3.1.58 fails to validate submodule names from .gitmodules files, allowing attackers to create Git repositories at arbitrary filesystem paths outside the intended clone directory. Attackers can craft malicious repositories with traversal sequences in submodule names that GitPython processes during submodule initialization, creating attacker-controlled Git repositories at escaped filesystem locations.
CVSS v4.0
Score 8.4high
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
CVE-2026-76222 is a path traversal vulnerability in GitPython prior to version 3.1.58. The issue arises because GitPython fails to properly validate submodule names extracted from .gitmodules files. Attackers can exploit this by crafting malicious repositories with submodule names containing directory traversal sequences, causing GitPython to create Git repositories at unintended filesystem paths outside the target clone directory during submodule initialization.
Potential Impact
Successful exploitation enables attackers to create Git repositories at arbitrary filesystem paths outside the intended clone directory. This could lead to unauthorized file creation or modification in locations controlled by the attacker, potentially impacting system integrity or security depending on the environment where GitPython is used.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch link is provided, users should monitor the vendor's announcements for updates and avoid processing untrusted .gitmodules files until a fix is available.
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: 6a85bc7aacd9273b492f49c0
Added to database: 08/19/2026, 14:23:54 UTC
Last enriched: 08/19/2026, 14:40:21 UTC
Last updated: 08/19/2026, 17:55:41 UTC
Views: 2
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.