CVE-2026-87817
Last modified
CVE-2026-87817 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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.. EPSS estimates a 0.31% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | < 3.1.60 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-87817?
How severe is CVE-2026-87817?
How do I fix CVE-2026-87817?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-87811SiYuan before v3.8.2 inserts persisted notebook template pat…7.3
- CVE-2026-87812SiYuan before v3.8.2 contains a stored cross-site scripting …6.8
- CVE-2026-87813SiYuan before v3.8.2 contains a stored cross-site scripting …7.3
- CVE-2026-87814SiYuan before v3.8.2 contains a stored cross-site scripting …7.3
- CVE-2026-87815SiYuan versions before v3.8.2 contain a path traversal vulne…8.7
- CVE-2026-87816PasswordPusher before 2.11.1 contains a time-of-check-to-tim…7.5
- CVE-2026-87818GitPython 3.1.59 fails to restrict the --no-index option in …6.5
- CVE-2026-87819GitPython before 3.1.60 contains a regular expression denial…7.5
- CVE-2026-8782A weakness has been identified in omec-project amf up to 2.1…4.3
- CVE-2026-87820CyberPanel versions 2.4.3 through 2.4.5 expose unauthenticat…5.3
- CVE-2026-87821Lara Dashboard through 1.3.1 contains a server-side request …7.1
- CVE-2026-87822t-digest versions 3.1 through 3.3 fail to validate centroid …7.5
Are you affected by CVE-2026-87817?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
