← Vulnerability feed

Vulnerability record · CVE-2026-76221 · published 19 August 2026

CVE-2026-76221: Gitpython project gitpython injection vulnerability

Gitpython Project · Gitpython

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.

8.7 CVSS 4.0 High EPSS 0.77% · top 46.1% CWE-74 · Injection
8.7CVSS 4.0 base score
0.77%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 1 tagged exploit
2 Sep 2026Last modified by NVD

Description

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.

CVSS: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:

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-76221 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-42284Gitpython project gitpython argument injection vulnerabilityGitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list,…EPSS 0.71%9.8CVE-2023-40267Gitpython project gitpython vulnerabilityGitPython before 3.1.32 does not block insecure non-multi options in clone and clone_from. NOTE: this issue exists because of an incomplete fix for C…EPSS 1.2%9.8CVE-2022-24439Gitpython project gitpython improper input validation vulnerabilityAll versions of package gitpython are vulnerable to Remote Code Execution (RCE) due to improper user input validation, which makes it possible to inj…EPSS 5.7%9.3CVE-2026-78676Gitpython project gitpython argument injection vulnerabilityGitPython before 3.1.59 fails to safely re-serialize multi-line git-config values during write operations, corrupting dormant quoted values into inje…EPSS 0.78%9.3CVE-2026-67324Gitpython project gitpython os command injection vulnerabilityGitPython 3.1.50 fails to recognize joined short-option forms such as -u<value> (the short form of --upload-pack=<value>) when enforcing its default …EPSS 0.64%8.8CVE-2026-42215Gitpython project gitpython os command injection vulnerabilityGitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git op…EPSS 0.90%8.7CVE-2026-87819Gitpython project gitpython inefficient regular expression (redos) vulnerabilityGitPython before 3.1.60 contains a regular expression denial of service vulnerability in Actor.name_email_regex that processes commit author and comm…EPSS 0.52%8.7CVE-2026-87817Gitpython project gitpython code injection vulnerabilityGitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked file…EPSS 0.40%

Source: NIST National Vulnerability Database (record CVE-2026-76221), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.