# CVE-2026-69097: GitPython before 3.1.53 Config Injection via Submodule Names

- Severity: High 7.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/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.27%, higher than 12% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-24T16:22:02.000Z
- Modified: 2026-10-23T21:47:05.000Z
- Also known as: GHSA-3rp5-jjmw-4wv2, PYSEC-2026-3981
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

GitPython before 3.1.53 fails to properly escape section names in git config files, allowing attackers to inject arbitrary configuration directives through malicious submodule names. Attackers can inject core.sshCommand or other dangerous config keys into the victim's .git/config via create_submodule or clone_from operations, achieving remote code execution when git performs ssh operations.

(As written by CVE List.)

## Affected

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

## Every score

- VulnCheck: CVSS:4.0 7.3 High `CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-3rp5-jjmw-4wv2> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/gitpython-before-config-injection-via-submodule-names> (advisory, third-party-advisory, web)
- <https://github.com/gitpython-developers/GitPython/pull/2176> (web)
- <https://github.com/gitpython-developers/GitPython/commit/1ed1b924f4e2d2ee7bab296df77b978af21853f1> (web)
- <https://github.com/gitpython-developers/GitPython> (package)
- <https://github.com/gitpython-developers/GitPython/releases/tag/3.1.53> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3981.yaml> (web)

## Sources

- CVE List: [CVE-2026-69097](https://www.cve.org/CVERecord?id=CVE-2026-69097), CVE Terms of Use, modified 2026-08-14
- GitHub Advisory Database: [GHSA-3rp5-jjmw-4wv2](https://github.com/advisories/GHSA-3rp5-jjmw-4wv2), CC-BY-4.0, modified 2026-10-23
- NVD: [CVE-2026-69097](https://nvd.nist.gov/vuln/detail/CVE-2026-69097), Public domain, modified 2026-10-23
- PyPA Advisory Database: [PYSEC-2026-3981](https://osv.dev/vulnerability/PYSEC-2026-3981), CC-BY-4.0, modified 2026-09-17

---

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