StraitOfVuln
Latest / CVE-2026-67326

CVE-2026-67326

HighCVSS 7.8 (v3.1)Analyzed
CVE.org ↗NVD ↗Vendor advisory ↗

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.

Details

CVE ID
CVE-2026-67326
Published / updated
01 Aug 2026, 13:17 UTC · last modified 23 Oct 2026, 23:10 UTC
Severity
HIGH
CVSS score
7.8 · v3.1 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · Attack vector: Local
Affected vendor
Affected products
Gitpython
Affected versions
Gitpython: < 3.1.50
Fixed versions
gitpython 3.1.50
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.43% probability of exploitation in the next 30 days · 39% percentile (02 Dec 2026)
Weakness
Remediation
Upgrade to a fixed release (gitpython 3.1.50) per the vendor advisory.
Source (CNA)
disclosure@vulncheck.com