Vulnerability

CVE-2026-87817

highCVSS 4.0 8.7Published 9 Sep 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

GitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary code by placing a malicious pre-commit hook in the tracked hooks directory that executes when a victim calls index.commit() on a cloned or opened repository.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Gitpython Project gitpython

Weakness type

References

  • github.com /gitpython-developers/GitPython/security/advisories/GHSA-23…
  • www.vulncheck.com /advisories/gitpython-before-3.1.60-remote-code-execution-v…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning