Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
GitPython versions before 3.1.41 on Windows can run a malicious git.exe or bash.exe from an untrusted repository's working directory through an untrusted search path. An attacker who can get a malicious repository or fork onto a user's machine can achieve arbitrary code execution when the application uses a shell to run git or when hook scripts run, and the user performs an action that triggers them. Upgrade to gitpython 3.1.41 or later. Applications that set Git.USE_SHELL = True can avoid this exposure by not using a shell for git commands.
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.0032, the 24th 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-2mqj-m65w-jghx
- OSV: GHSA-2mqj-m65w-jghx
- github.com/gitpython-developers/GitPython/security/advisories/GHSA-2mqj-m65w-jghx
- nvd.nist.gov/vuln/detail/CVE-2024-22190
- github.com/gitpython-developers/GitPython/pull/1792
- github.com/gitpython-developers/GitPython/commit/ef3192cc414f2fd9978908454f6fd95243784c7f
- github.com/gitpython-developers/GitPython
- github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2024-4.yaml