๐Ÿ” CVE Alert

CVE-2026-67326

HIGH 7.0

GitPython before 3.1.50 Newline Injection via config_writer section

CVSS Score
7.0
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-20
Vendor gitpython-developers
Product gitpython
Published Aug 1, 2026
Stay Ahead of the Next One

Get instant alerts for gitpython-developers gitpython

Be the first to know when new high vulnerabilities affecting gitpython-developers gitpython are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

gitpython-developers / GitPython
0 < 3.1.50

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2w vulncheck.com: https://www.vulncheck.com/advisories/gitpython-before-newline-injection-via-config-writer-section

Credits

๐Ÿ” aslein1413-sys