# CVE-2026-76221: GitPython before 3.1.58 Config Injection via option-name

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 3.1.58 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-19 · Modified: 2026-10-08
- Aliases: GHSA-jm78-9fvv-mhgr, PYSEC-2026-3783, UBUNTU-CVE-2026-76221, DEBIAN-CVE-2026-76221, ALPINE-CVE-2026-76221
- Record: https://cvemate.com/vulnerability/CVE-2026-76221 · JSON: https://cvemate.com/vulnerability/CVE-2026-76221/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.485%, percentile 43.434%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine py3-gitpython (Alpine Linux): \< 3.1.61-r0
- debian python-git (Debian): All versions (No fix recorded) \| \< 3.1.30-1+deb12u3 \| \< 3.1.44-1+deb13u1 \| \< 3.1.61-1
- ubuntu python-git (Ubuntu): All versions (No fix recorded)
- gitpython\_project gitpython: \< 3.1.58
- gitpython-developers gitpython: \< 3.1.58
- PyPI gitpython (PyPI): \< 3.1.58

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-jm78-9fvv-mhgr>
- <https://www.vulncheck.com/advisories/gitpython-before-config-injection-via-option-name>
- <https://github.com/gitpython-developers/GitPython/pull/2204>
- <https://github.com/gitpython-developers/GitPython/commit/a495ccd3b547ccd60b2187215823b72a9c0188bf>
- <https://github.com/gitpython-developers/GitPython>
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.58>
- <https://ubuntu.com/security/CVE-2026-76221>
- <https://www.cve.org/CVERecord?id=CVE-2026-76221>
- <https://security-tracker.debian.org/tracker/CVE-2026-76221>
- <https://security.alpinelinux.org/vuln/CVE-2026-76221>

---

Data as of 2026-12-05T08:15:32.459Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
