CVE-2026-76221
published 2026-08-19CVE-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…
PriorityP356high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EPSS
0.48%
40.6th percentile
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.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| ansible-automation-platform-24 | controller-rhel8 | — | — |
| ansible-automation-platform-24 | hub-rhel8 | — | — |
| ansible-automation-platform-25 | controller-rhel8 | — | — |
| ansible-automation-platform-26 | controller-rhel9 | — | — |
| ansible-automation-platform-27 | controller-rhel9 | — | — |
| ansible-automation-platform-27 | hub-rhel9 | — | — |
| gitpython-developers | gitpython | < 3.1.58 | 3.1.58 |
| gitpython_project | gitpython | < 3.1.58 | 3.1.58 |
| gitpython_project | gitpython | — | — |
| satellite-capsule_el8 | python-gitpython | — | — |
| satellite | iop-vmaas-rhel9 | — | — |
| satellite | iop-vulnerability-engine-rhel9 | — | — |
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv4.08.7HIGHCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vendor_redhat8.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
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 symbo
ghsa_unreviewed·2026-08-19
CVE-2026-76221 [HIGH] CWE-74 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 symbo
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.
Red Hat
gitpython: GitPython: Arbitrary code execution via config-name injection
vendor_redhat·2026-08-19·CVSS 8.8
CVE-2026-76221 [HIGH] CWE-78 gitpython: GitPython: Arbitrary code execution via config-name injection
gitpython: GitPython: Arbitrary code execution via config-name injection
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.
A flaw was found in GitPython. This vulnerability allows attackers to inject malicious configuration options by manipulating option names within the option-name validator. By injecting special characters, an attacker can forge arbitrary git-config directives, potentially leading to arbitrary code execution on
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2026-76221 GitPython: GitPython: Arbitrary code execution via config-name injection [epel-all]
bugzilla·2026-08-27·CVSS 8.8
CVE-2026-76221 [HIGH] CVE-2026-76221 GitPython: GitPython: Arbitrary code execution via config-name injection [epel-all]
CVE-2026-76221 GitPython: GitPython: Arbitrary code execution via config-name injection [epel-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
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.
Discussion:
GitPython >=3.1.58 is already in all EPEL branc
Bugzilla
CVE-2026-76221 GitPython: GitPython: Arbitrary code execution via config-name injection [fedora-all]
bugzilla·2026-08-27·CVSS 8.8
CVE-2026-76221 [HIGH] CVE-2026-76221 GitPython: GitPython: Arbitrary code execution via config-name injection [fedora-all]
CVE-2026-76221 GitPython: GitPython: Arbitrary code execution via config-name injection [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
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.
Discussion:
GitPython >=3.1.58 is already in all Fedora b
Bugzilla
CVE-2026-76221 gitpython: GitPython: Arbitrary code execution via config-name injection
bugzilla·2026-08-19·CVSS 8.8
CVE-2026-76221 [HIGH] CVE-2026-76221 gitpython: GitPython: Arbitrary code execution via config-name injection
CVE-2026-76221 gitpython: GitPython: Arbitrary code execution via config-name injection
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.
2026-08-19
Published