PoC Monitor
← All CVEs
CVE-2026-87817published 9 Sep 2026 11:21 UTCData: JSON · API

Gitpython-developers GitPython

GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.8high · scored by CNA · CWE-94
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

gitpython-developers GitPython
  • < 3.1.60

Fixed in 3.1.60

Mitigation

Upgrade GitPython to 3.1.60 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published9 Sep 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.