CVE-2026-76222
Received Received - Intake

GitPython Submodule Path Traversal Vulnerability

Vulnerability report for CVE-2026-76222, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-19

Last updated on: 2026-08-19

Assigner: VulnCheck

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-19
Last Modified
2026-08-19
Generated
2026-08-19
AI Q&A
2026-08-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
gitpython gitpython to 3.1.58 (exc)
gitpython gitpython to 3.1.57 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

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 craft malicious repositories with traversal sequences in submodule names that GitPython processes during submodule initialization, creating attacker-controlled Git repositories at escaped filesystem locations.

Detection Guidance

To detect this vulnerability, check GitPython versions before 3.1.58. Run 'pip show GitPython' or 'gitpython --version' to verify installed versions. Inspect .gitmodules files in repositories for suspicious submodule names containing path traversal sequences like ../../../../.

Impact Analysis

This vulnerability allows attackers to escape the intended directory and place repositories in attacker-controlled locations. It can lead to high integrity loss as attackers control destination paths and content, and potential low-medium availability impact due to disk exhaustion. The attack requires only that the victim clones and initializes submodules from a malicious repository.

Compliance Impact

This vulnerability could lead to non-compliance with GDPR and HIPAA due to unauthorized filesystem access. Attackers may place malicious repositories outside intended directories, potentially accessing or modifying sensitive data in restricted locations. This violates data integrity and access control requirements under these regulations.

Mitigation Strategies

Immediately upgrade GitPython to version 3.1.58 or later. Avoid cloning and initializing submodules from untrusted repositories. Review .gitmodules files for malicious submodule names and remove any suspicious entries.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-76222. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart