Vulnerability · Published Aug 1, 2026 · Assigned by VulnCheck

CVE-2026-67326GitPython before 3.1.50 Newline Injection via config_writer section

High 7.0

In plain English

A high-severity improper input validation in GitPython from gitpython-developers. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.0High
Exploit odds (30 days)0.3%top 83.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-git3.1.30-1+deb12u3DEBIAN-CVE-2026-67326
Debian:13python-git3.1.44-1+deb13u1DEBIAN-CVE-2026-67326
Debian:14python-git3.1.50-1DEBIAN-CVE-2026-67326
PyPIgitpython3.1.50GHSA-mv93-w799-cj2w
PyPIgitpython3.1.50PYSEC-2026-3980

Affected products (as reported)

VendorProductVersions
gitpython-developers GitPython 0 – before 3.1.50

Weakness: CWE-20 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

References