๐Ÿ” CVE Alert

CVE-2026-87817

HIGH 8.8

GitPython before 3.1.60 Remote Code Execution via Git Directory Impersonation

CVSS Score
8.8
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-94
Vendor gitpython-developers
Product gitpython
Published Sep 9, 2026
Last Updated Sep 10, 2026
Stay Ahead of the Next One

Get instant alerts for gitpython-developers gitpython

Be the first to know when new high vulnerabilities affecting gitpython-developers gitpython are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

gitpython-developers / GitPython
0 < 3.1.60

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-239g-whfq-7xj9 vulncheck.com: https://www.vulncheck.com/advisories/gitpython-before-3.1.60-remote-code-execution-via-git-directory-impersonation

Credits

๐Ÿ” dharanivarma