Vulnerability
CVE-2026-76221
GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace into option names. Attackers can inject malicious option names like 'sshCommand = touch /tmp/RCE #' to execute arbitrary commands via core.sshCommand or core.hooksPath on the next git operation.
15 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
ALPINE-CVE-2026-76221
GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace…
- ALPINE-EDGE-CVE-2026-76221
-
DEBIAN-CVE-2026-76221
GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace…
-
DLA-4872-1
python-git - security update
-
DSA-6594-1
python-git - security update
-
GHSA-jm78-9fvv-mhgr
GitPython: git-config OPTION-name injection via =/#/whitespace bypasses name validator, enabling forged core.sshCommand/hooksPath (RCE)
-
OESA-2026-3699
python-GitPython security update
-
OESA-2026-3700
python-GitPython security update
-
OESA-2026-3721
python-GitPython security update
-
PYSEC-2026-3783
GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace…
-
RHSA-2026:63385
Red Hat Security Advisory: Satellite 6.19.4 Async Update
-
SUSE-SU-2026:4072-1
Security update for python-GitPython
-
UBUNTU-CVE-2026-76221
GitPython before 3.1.58 contains a config-name injection vulnerability in the option-name validator that allows attackers to forge arbitrary git-config directives by injecting equals signs, hash symbols, and whitespace…
-
openSUSE-SU-2026:11566-1
python313-GitPython-3.1.59-2.1 on GA media
-
openSUSE-SU-2026:21874-1
Security update for python-GitPython