CVE-2026-67326
Aliases:GHSA-mv93-w799-cj2wUBUNTU-CVE-2026-67326DEBIAN-CVE-2026-67326PYSEC-2026-3980
Advisory lineage Upstream: 0 Downstream: 5
Analyzed
Published: 01 Aug 2026, 12:22
Last modified:14 Aug 2026, 16:50
Vulnerability Summary
Overall Risk (default)
medium
41/100 CVSS Score
7.8 HIGH
v3.1 (nvd)
EPSS Score
0.28% LOW
0% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
1 found
Dark Web
Not detected
Timeline
01 Aug 2026, 12:22
Published
Vulnerability first disclosed
14 Aug 2026, 16:50
Last Modified
Vulnerability 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
- v4.0•HIGH•Score: 7.3CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- v4.0•HIGH•Score: 7.3CVSS: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
- v3.1•HIGH•Score: 7CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 0.28%• Percentile: 21%
Techniques & Countermeasures
- CWE-20•Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Affected Systems
- debian•python-git
all | all | all | < 3.1.50-1
- ubuntu•python-git
all
- gitpython_project•gitpython
< 3.1.50
- gitpython-developers•gitpython
< 3.1.50
- PyPI•gitpython
< 3.1.50
References (7)
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2w
- https://www.vulncheck.com/advisories/gitpython-before-newline-injection-via-config-writer-section
- https://github.com/advisories/GHSA-rpm5-65cw-6hj4
- https://github.com/gitpython-developers/GitPython
- https://ubuntu.com/security/CVE-2026-67326
- https://www.cve.org/CVERecord?id=CVE-2026-67326
- https://security-tracker.debian.org/tracker/CVE-2026-67326