Skip to main content
HIGH

CVE-2026-87817

CVSS v3

8.8

HIGH

EPSS Score

0.4 %

exploit probability, as of 2026-09-28

CISA KEV

No

known exploited

Exploitation

—

SSVC status

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.

Technical details

Published
2026-09-09
Last Modified
2026-09-10

Frequently asked questions

What is CVE-2026-87817?

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.

Is CVE-2026-87817 actively exploited?

Active exploitation of CVE-2026-87817 has not been confirmed. Its EPSS score was 0.4% on 2026-09-28, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-87817?

CVE-2026-87817 has a CVSS v3 base score of 8.8 (HIGH severity).

Is CVE-2026-87817 affecting your environment?

Use isMalicious to check if any of your IPs or domains are associated with this vulnerability's IOCs.

No credit card required · 500 free checks/month · Free API key