Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
GitPython versions before 3.1.33 are vulnerable on Windows: when run from a directory containing a git.exe or git executable, GitPython runs that program instead of the git on PATH. An attacker who gets a user to download a repository containing a malicious git executable and then run or import GitPython from that directory can execute arbitrary commands. Upgrade gitpython to 3.1.33 or later. Until then, avoid running GitPython from untrusted repositories, or set the GIT_PYTHON_GIT_EXECUTABLE environment variable to an absolute path.
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.8 | High | 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0051, the 43rd percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:36 UTC First seen by agentprime
- 31 Oct 2026, 14:36 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-wfm5-v35h-vwf4
- OSV: GHSA-wfm5-v35h-vwf4
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4
- nvd.nist.gov/vuln/detail/CVE-2023-40590
- github.com/gitpython-developers/GitPython/issues/1635
- github.com/gitpython-developers/GitPython/pull/1636
- github.com/gitpython-developers/GitPython/commit/8b75434e2c8a082cdeb4971cc6f0ee2bafec45bc
- docs.python.org/3/library/subprocess.html#popen-constructor
- github.com/gitpython-developers/GitPython
- github.com/gitpython-developers/GitPython/releases/tag/3.1.33
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2023-161.yaml