Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
GitPython versions before 3.1.58 are vulnerable to git-config option-name injection. The config-name validator does not reject characters such as =, #, or whitespace in option names, so a caller-controlled option name can forge directives like core.sshCommand or core.hooksPath. An attacker who can influence the option name passed to the config writer could achieve remote code execution on the next git operation. Upgrade to GitPython 3.1.58, which contains the fix.
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 |
|---|---|---|---|---|
| 8.7 | High | 4.0 | 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 | CNA (VulnCheck) |
- CISA KEV Not listed.
- EPSS 0.0049, the 42nd percentile, on 13 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:10 UTC First seen by agentprime
- 31 Oct 2026, 14:10 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-jm78-9fvv-mhgr
- OSV: GHSA-jm78-9fvv-mhgr
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-jm78-9fvv-mhgr
- github.com/gitpython-developers/GitPython/pull/2204
- github.com/gitpython-developers/GitPython/commit/a495ccd3b547ccd60b2187215823b72a9c0188bf
- github.com/gitpython-developers/GitPython
- github.com/gitpython-developers/GitPython/releases/tag/3.1.58