CVE-2026-67326
Last modified
CVE-2026-67326 is a high-severity vulnerability rated 7.8/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.32% 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
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Gitpython Project | Gitpython | < 3.1.50 |
References
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2wExploit, Vendor Advisory
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2wExploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
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…7.5
- CVE-2026-67321axios versions 0.31.1 before 0.33.0 and 1.15.1 before 1.18.0…7.5
- CVE-2026-67322GitPython before 3.1.52 is vulnerable to environment-variabl…7.5
- CVE-2026-67323GitPython before 3.1.51 fails to guard against dangerous Git…8.4
- 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.3
- CVE-2026-67328@better-auth/sso versions before 1.6.21 contain multiple aut…8.1
- 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.3
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
