Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
GitPython versions before 3.1.53 are vulnerable to config section-name injection: section names are written into a git config header with only CR, LF and NUL filtered, so a name containing a closing bracket can inject an arbitrary config directive such as core.sshCommand. An attacker who can supply a submodule name, either through a cloned repository's .gitmodules file or through an application that lets users name submodules, can achieve remote code execution on the next git operation. Upgrade to GitPython 3.1.53 or later; the source gives no other workaround.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 7.3 | High | 4.0 | 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 | CNA (VulnCheck) |
- CISA KEV Not listed.
- EPSS 0.0027, the 19th percentile, on 13 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:08 UTC First seen by agentprime
- 31 Oct 2026, 14:08 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-3rp5-jjmw-4wv2
- OSV: GHSA-3rp5-jjmw-4wv2
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-3rp5-jjmw-4wv2
- github.com/gitpython-developers/GitPython/pull/2176
- github.com/gitpython-developers/GitPython/commit/1ed1b924f4e2d2ee7bab296df77b978af21853f1
- github.com/gitpython-developers/GitPython
- github.com/gitpython-developers/GitPython/releases/tag/3.1.53
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3981.yaml
- www.vulncheck.com/advisories/gitpython-before-config-injection-via-submodule-names