Skip to content

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

HighCVSS 7.3 EPSS 0.25%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

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.

Upgrade path

12 packages: 9 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/python-git(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/python-git(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/python-git(Ubuntu 26.04) All versions No fix listed No fix yet
debian/python-git(Debian 12) < 3.1.30-1+deb12u3; = 3.1.30-1; = 3.1.30-1+deb12u2 3.1.30-1+deb12u3 Fixed
debian/python-git(Debian 13) < 3.1.44-1+deb13u1; = 3.1.44-1 3.1.44-1+deb13u1 Fixed
debian/python-git(Debian 14) < 3.1.50-1; = 3.1.44-1; = 3.1.45-1; = 3.1.46-1 3.1.50-1 Fixed
gitpython project gitpython < 3.1.50 3.1.50 Fixed
pypi gitpython < 3.1.50 3.1.50 Fixed
pypi gitpython(PyPI) < 3.1.50; <= 3.1.49; = 0.1.7; = 0.2.0-beta1 +100 more 3.1.50 Fixed
redhat/llvm-main(Red Hat hummingbird 1) < 22.1.8-4.1.hum1 22.1.8-4.1.hum1 Fixed
redhat/llvm21-main(Red Hat hummingbird 1) < 21.1.8-8.hum1 21.1.8-8.hum1 Fixed
redhat/swift-lang-main(Red Hat hummingbird 1) < 6.3.3-0.1.1.hum1 6.3.3-0.1.1.hum1 Fixed

Affected products

ProductAffected versionsFixed in
pypi gitpython(PyPI) < 3.1.50 3.1.50
pypi gitpython(PyPI) = 0.1.7 No fix listed
pypi gitpython(PyPI) = 0.2.0-beta1 No fix listed
pypi gitpython(PyPI) = 0.3.0-beta1 No fix listed
pypi gitpython(PyPI) = 0.3.0-beta2 No fix listed
pypi gitpython(PyPI) = 0.3.1-beta2 No fix listed
pypi gitpython(PyPI) = 0.3.2 No fix listed
pypi gitpython(PyPI) = 0.3.2.1 No fix listed
pypi gitpython(PyPI) = 0.3.2.RC1 No fix listed
pypi gitpython(PyPI) = 0.3.3 No fix listed
pypi gitpython(PyPI) = 0.3.4 No fix listed
pypi gitpython(PyPI) = 0.3.5 No fix listed
pypi gitpython(PyPI) = 0.3.6 No fix listed
pypi gitpython(PyPI) = 0.3.7 No fix listed
pypi gitpython(PyPI) = 1.0.0 No fix listed
pypi gitpython(PyPI) = 1.0.1 No fix listed
pypi gitpython(PyPI) = 1.0.2 No fix listed
pypi gitpython(PyPI) = 2.0.0 No fix listed
pypi gitpython(PyPI) = 2.0.1 No fix listed
pypi gitpython(PyPI) = 2.0.2 No fix listed
pypi gitpython(PyPI) = 2.0.3 No fix listed
pypi gitpython(PyPI) = 2.0.4 No fix listed
pypi gitpython(PyPI) = 2.0.5 No fix listed
pypi gitpython(PyPI) = 2.0.6 No fix listed
pypi gitpython(PyPI) = 2.0.7 No fix listed
Show 96 more
ProductAffected versionsFixed in
pypi gitpython(PyPI) = 2.0.8 No fix listed
pypi gitpython(PyPI) = 2.0.9 No fix listed
pypi gitpython(PyPI) = 2.0.9.dev0 No fix listed
pypi gitpython(PyPI) = 2.0.9.dev1 No fix listed
pypi gitpython(PyPI) = 2.1.0 No fix listed
pypi gitpython(PyPI) = 2.1.1 No fix listed
pypi gitpython(PyPI) = 2.1.10 No fix listed
pypi gitpython(PyPI) = 2.1.11 No fix listed
pypi gitpython(PyPI) = 2.1.12 No fix listed
pypi gitpython(PyPI) = 2.1.13 No fix listed
pypi gitpython(PyPI) = 2.1.14 No fix listed
pypi gitpython(PyPI) = 2.1.15 No fix listed
pypi gitpython(PyPI) = 2.1.2 No fix listed
pypi gitpython(PyPI) = 2.1.3 No fix listed
pypi gitpython(PyPI) = 2.1.4 No fix listed
pypi gitpython(PyPI) = 2.1.5 No fix listed
pypi gitpython(PyPI) = 2.1.6 No fix listed
pypi gitpython(PyPI) = 2.1.7 No fix listed
pypi gitpython(PyPI) = 2.1.8 No fix listed
pypi gitpython(PyPI) = 2.1.9 No fix listed
pypi gitpython(PyPI) = 3.0.0 No fix listed
pypi gitpython(PyPI) = 3.0.1 No fix listed
pypi gitpython(PyPI) = 3.0.2 No fix listed
pypi gitpython(PyPI) = 3.0.3 No fix listed
pypi gitpython(PyPI) = 3.0.4 No fix listed
pypi gitpython(PyPI) = 3.0.5 No fix listed
pypi gitpython(PyPI) = 3.0.6 No fix listed
pypi gitpython(PyPI) = 3.0.7 No fix listed
pypi gitpython(PyPI) = 3.0.8 No fix listed
pypi gitpython(PyPI) = 3.0.9 No fix listed
pypi gitpython(PyPI) = 3.1.0 No fix listed
pypi gitpython(PyPI) = 3.1.1 No fix listed
pypi gitpython(PyPI) = 3.1.10 No fix listed
pypi gitpython(PyPI) = 3.1.11 No fix listed
pypi gitpython(PyPI) = 3.1.12 No fix listed
pypi gitpython(PyPI) = 3.1.13 No fix listed
pypi gitpython(PyPI) = 3.1.14 No fix listed
pypi gitpython(PyPI) = 3.1.15 No fix listed
pypi gitpython(PyPI) = 3.1.16 No fix listed
pypi gitpython(PyPI) = 3.1.17 No fix listed
pypi gitpython(PyPI) = 3.1.18 No fix listed
pypi gitpython(PyPI) = 3.1.19 No fix listed
pypi gitpython(PyPI) = 3.1.2 No fix listed
pypi gitpython(PyPI) = 3.1.20 No fix listed
pypi gitpython(PyPI) = 3.1.22 No fix listed
pypi gitpython(PyPI) = 3.1.23 No fix listed
pypi gitpython(PyPI) = 3.1.24 No fix listed
pypi gitpython(PyPI) = 3.1.25 No fix listed
pypi gitpython(PyPI) = 3.1.26 No fix listed
pypi gitpython(PyPI) = 3.1.27 No fix listed
pypi gitpython(PyPI) = 3.1.28 No fix listed
pypi gitpython(PyPI) = 3.1.29 No fix listed
pypi gitpython(PyPI) = 3.1.3 No fix listed
pypi gitpython(PyPI) = 3.1.30 No fix listed
pypi gitpython(PyPI) = 3.1.31 No fix listed
pypi gitpython(PyPI) = 3.1.32 No fix listed
pypi gitpython(PyPI) = 3.1.33 No fix listed
pypi gitpython(PyPI) = 3.1.34 No fix listed
pypi gitpython(PyPI) = 3.1.35 No fix listed
pypi gitpython(PyPI) = 3.1.36 No fix listed
pypi gitpython(PyPI) = 3.1.37 No fix listed
pypi gitpython(PyPI) = 3.1.38 No fix listed
pypi gitpython(PyPI) = 3.1.4 No fix listed
pypi gitpython(PyPI) = 3.1.40 No fix listed
pypi gitpython(PyPI) = 3.1.41 No fix listed
pypi gitpython(PyPI) = 3.1.42 No fix listed
pypi gitpython(PyPI) = 3.1.43 No fix listed
pypi gitpython(PyPI) = 3.1.44 No fix listed
pypi gitpython(PyPI) = 3.1.45 No fix listed
pypi gitpython(PyPI) = 3.1.46 No fix listed
pypi gitpython(PyPI) = 3.1.47 No fix listed
pypi gitpython(PyPI) = 3.1.48 No fix listed
pypi gitpython(PyPI) = 3.1.49 No fix listed
pypi gitpython(PyPI) = 3.1.5 No fix listed
pypi gitpython(PyPI) = 3.1.6 No fix listed
pypi gitpython(PyPI) = 3.1.7 No fix listed
pypi gitpython(PyPI) = 3.1.8 No fix listed
pypi gitpython(PyPI) = 3.1.9 No fix listed
pypi gitpython < 3.1.50 3.1.50
redhat/llvm-main(Red Hat:hummingbird:1) < 22.1.8-4.1.hum1 22.1.8-4.1.hum1
redhat/swift-lang-main(Red Hat:hummingbird:1) < 6.3.3-0.1.1.hum1 6.3.3-0.1.1.hum1
redhat/llvm21-main(Red Hat:hummingbird:1) < 21.1.8-8.hum1 21.1.8-8.hum1
pypi gitpython(PyPI) <= 3.1.49 No fix listed
debian/python-git(Debian:12) < 3.1.30-1+deb12u3 3.1.30-1+deb12u3
debian/python-git(Debian:12) = 3.1.30-1 No fix listed
debian/python-git(Debian:12) = 3.1.30-1+deb12u2 No fix listed
debian/python-git(Debian:13) < 3.1.44-1+deb13u1 3.1.44-1+deb13u1
debian/python-git(Debian:13) = 3.1.44-1 No fix listed
debian/python-git(Debian:14) < 3.1.50-1 3.1.50-1
debian/python-git(Debian:14) = 3.1.44-1 No fix listed
debian/python-git(Debian:14) = 3.1.45-1 No fix listed
debian/python-git(Debian:14) = 3.1.46-1 No fix listed
ubuntu/python-git(Ubuntu:22.04) All versions No fix listed
ubuntu/python-git(Ubuntu:24.04) All versions No fix listed
ubuntu/python-git(Ubuntu:26.04) All versions No fix listed
gitpython project gitpython < 3.1.50 3.1.50

References