Vulnerability in Gitpython-Developers Gitpython

CVE-2026-76217

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.

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-76217?
CVE-2026-76217 is a medium-severity vulnerability in Gitpython-Developers Gitpython, classified under External Control of File Name or Path. CVSS score: 6.5/10. Published 2026-08-19.
How severe is CVE-2026-76217?
Medium severity. CVSS v3 base score is 6.5 out of 10.