Vulnerability
CVE-2026-67326
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.
16 advisories report this vulnerability, across 7 ecosystems.
Advisories
-
DEBIAN-CVE-2026-67326
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…
-
DLA-4872-1
python-git - security update
-
DSA-6594-1
python-git - security update
-
GHSA-mv93-w799-cj2w
GitPython: Newline injection in config_writer() section parameter bypasses CVE-2026-42215 patch, enabling RCE via core.hooksPath
-
OESA-2026-3249
python-GitPython security update
-
OESA-2026-3250
python-GitPython security update
-
OESA-2026-3251
python-GitPython security update
-
PYSEC-2026-3980
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…
-
RHSA-2026:44416
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
RHSA-2026:45785
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
-
RHSA-2026:45940
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
SUSE-SU-2026:4072-1
Security update for python-GitPython
-
SUSEVEX-CVE-2026-67326
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…
-
UBUNTU-CVE-2026-67326
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…
-
openSUSE-SU-2026:11466-1
python313-GitPython-3.1.58-1.1 on GA media
-
openSUSE-SU-2026:21874-1
Security update for python-GitPython