CVE-2024-22190: Untrusted search path under some conditions on Windows allows arbitrary code execution
Vulnerability summary
CVE-2024-22190 is a high (CVSS 7.8) Untrusted Search Path vulnerability in gitpython_project gitpython. EPSS estimates a 0.32% chance of exploitation in the next 30 days, higher than 26.4% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 11-01-2024PublishedVulnerability first disclosed.
- 03-09-2024Last modifiedVulnerability information updated.
Description
GitPython is a python library used to interact with Git repositories. There is an incomplete fix for CVE-2023-40590. On Windows, GitPython uses an untrusted search path if it uses a shell to run `git`, as well as when it runs `bash.exe` to interpret hooks. If either of those features are used on Windows, a malicious `git.exe` or `bash.exe` may be run from an untrusted repository. This issue has been patched in version 3.1.41.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · PypiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.32%
Chance of exploitation in the next 30 days
Percentile
26%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.32% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard1 product
- checkov< 3.0.34-r1
Gitpython_project1 product
- gitpython< 3.1.41
Gitpython-developers1 product
- gitpython< 3.1.41
PyPI1 product
- gitpython< ef3192cc414f2fd9978908454f6fd95243784c7f | < 3.1.41
Ubuntu1 product
- python-gitAll versions (No fix recorded)
Wolfi1 product
- checkov< 3.0.34-r1
6 vendors · 6 products
References
9 links- github.com/gitpython-developers/GitPython/security/advisories/GHSA-2mqj-m65w-jghxX Refsource CONFIRMWEBAdvisoryREPORTVendor Advisory
- github.com/gitpython-developers/GitPython/pull/1792X Refsource MISCWEBAdvisoryREPORTFIXPatchVendor Advisory
- github.com/gitpython-developers/GitPython/commit/ef3192cc414f2fd9978908454f6fd95243784c7fX Refsource MISCWEBFIXREPORTPatch