CVE-2026-76217
Medium
Description
GitPython versions before 3.1.58 fail to validate options passed to git rm and git checkout commands in IndexFile.remove() and Head.checkout(). Attackers can supply --pathspec-from-file and --pathspec-file-nul parameters to read arbitrary files accessible to the process, with full file contents returned in GitCommandError.stderr.
SeverityMedium
CVSS6.5
Exploit probability—
ProductGitpython
PublishedAug 19, 2026
First seenAug 19, 2026
Weakness typeCWE-73CWE-73
How to fix
Update
- gitpython_project gitpython3.1.58 or later
- gitpython3.1.58 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gitpython_project gitpython | v < 3.1.58 | 3.1.58 |
| gitpythonPyPI | v < 3.1.58 | 3.1.58 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.