CVE-2026-67326: GitPython before 3.1.50 Newline Injection via config_writer section
Vulnerability summary
CVE-2026-67326 is a high (CVSS 7.8) Improper Input Validation vulnerability in gitpython_project gitpython. EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 17% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 3Timeline
- 01-08-2026PublishedVulnerability first disclosed.
- 14-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.3HighCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- NVDNIST7.3HighCVSS: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
- CVE.orgCNA7.0HighCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · PypiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.25%
Chance of exploitation in the next 30 days
Percentile
17%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.25% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGitpython
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- python-gitAll versions (No fix recorded) | < 3.1.30-1+deb12u3 | < 3.1.44-1+deb13u1 | < 3.1.50-1
Gitpython_project1 product
- gitpython< 3.1.50
Gitpython-developers1 product
- gitpython< 3.1.50
PyPI1 product
- gitpython< 3.1.50
Ubuntu1 product
- python-gitAll versions (No fix recorded)
5 vendors · 5 products
References
7 links- github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2wVendor AdvisoryWEBEVIDENCEREPORTExploit
- www.vulncheck.com/advisories/gitpython-before-newline-injection-via-config-writer-sectionThird Party AdvisoryAdvisoryREPORT