CVE-2026-67326

HIGH

GitPython before 3.1.50 Newline Injection via config_writer section

Title source: cna
STIX 2.1

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.

References (2)

Core 2
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory (GHSA-mv93-w799-cj2w)
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2w
Third Party Advisory third-party-advisory
VulnCheck Advisory: GitPython before 3.1.50 Newline Injection via config_writer section
https://www.vulncheck.com/advisories/gitpython-before-newline-injection-via-config-writer-section

Scores

CVSS v3 7.0
EPSS 0.0019
EPSS Percentile 9.1%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-20
Status published
Products (2)
gitpython-developers/GitPython < 3.1.50
gitpython-developers/GitPython 3.1.50
Published Aug 01, 2026
Tracked Since Aug 01, 2026