CVE-2026-67326
Last modified
CVE-2026-67326 is a high-severity vulnerability rated 7.3/10 on the CVSS scale. GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allowing attackers to inject arbitrary section headers into .git/config. Attackers can inject newlines to create a forged [core] section with hooksPath pointing to attacker-controlled directories, achieving remote code execution when git hooks are triggered.. EPSS estimates a 0.19% chance of exploitation in the next 30 days.
Description
GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allowing attackers to inject arbitrary section headers into .git/config. Attackers can inject newlines to create a forged [core] section with hooksPath pointing to attacker-controlled directories, achieving remote code execution when git hooks are triggered.
Metrics
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| gitpython-developers | GitPython | < 3.1.50 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-67326?
How severe is CVE-2026-67326?
How do I fix CVE-2026-67326?
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-67320axios in a Node.js deployment using the HTTP adapter can rou…8.3
- CVE-2026-67321axios versions 0.31.1 before 0.33.0 and 1.15.1 before 1.18.0…6.9
- CVE-2026-67322GitPython before 3.1.52 is vulnerable to environment-variabl…8.7
- CVE-2026-67323GitPython before 3.1.51 fails to guard against dangerous Git…8.6
- CVE-2026-67324GitPython 3.1.50 fails to recognize joined short-option form…9.8
- CVE-2026-67325GitPython before 3.1.51 contains an incomplete command injec…8.8
- CVE-2026-67327better-auth versions >= 1.1.3 and < 1.6.22 (and pre-release …8.7
- CVE-2026-67328@better-auth/sso versions before 1.6.21 contain multiple aut…8.6
- CVE-2026-67329@better-auth/stripe versions >= 1.4.11 and < 1.6.21, and >= …7.1
- CVE-2026-6733Impact: Undici's HTTP/1.1 client is vulnerable to response q…3.7
- CVE-2026-67330@better-auth/scim (a better-auth plugin) versions >= 1.4.0-b…9.9
- CVE-2026-67331better-auth SCIM versions from 1.5.0 before 1.7.0-beta.4 fai…8.7
Are you affected by CVE-2026-67326?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
