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

ProductAffected versionsFixed in
gitpython_project gitpythonv < 3.1.583.1.58
gitpythonPyPIv < 3.1.583.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.

CVE-2026-76217 · Gitpython · Dark Radar