# CVE-2026-76220: GitPython before 3.1.58 Command Execution via split_single_char_options

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.91%, higher than 58% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-07T15:49:07.000Z
- Modified: 2026-10-08T15:25:01.788Z
- Also known as: GHSA-wvpp-8hx9-p66j, PYSEC-2026-3843
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

GitPython before 3.1.58 contains a command execution vulnerability in the check_unsafe_options guard that can be bypassed by combining a single-character kwarg with split_single_char_options=False. Attackers can supply a crafted kwargs dictionary to guarded methods like clone_from to emit a joined token parsed as --upload-pack, enabling arbitrary OS command execution at default allow_unsafe_options=False.

(As written by CVE List.)

## Affected

- gitpython-developers GitPython: before 3.1.58 (not affected: 3.1.58)
- gitpython (PyPI): before 3.1.58
- gitpython_project gitpython: before 3.1.58

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wvpp-8hx9-p66j> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/gitpython-before-command-execution-via-split-single-char-options> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-76220> (advisory)
- <https://github.com/gitpython-developers/GitPython/pull/2204> (web)
- <https://github.com/gitpython-developers/GitPython/commit/96a888f4d782cb2f80452148e48e60ce4af6d541> (web)
- <https://github.com/gitpython-developers/GitPython> (package)
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.58> (web)
- <https://pypi.org/project/gitpython> (package)
- <https://github.com/advisories/GHSA-wvpp-8hx9-p66j> (advisory)

## Sources

- CVE List: [CVE-2026-76220](https://www.cve.org/CVERecord?id=CVE-2026-76220), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-wvpp-8hx9-p66j](https://github.com/advisories/GHSA-wvpp-8hx9-p66j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-76220](https://nvd.nist.gov/vuln/detail/CVE-2026-76220), Public domain, modified 2026-09-03
- PyPA Advisory Database: [PYSEC-2026-3843](https://osv.dev/vulnerability/PYSEC-2026-3843), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-76220 · Whole record: https://cve.day/CVE-2026-76220.json · Rebuilt by cve.day 2026-11-25T22:59:33.935Z
