CVE-2024-22190 json
Untrusted search path under some conditions on Windows allows arbitrary code execution
published 2024-01-10 2 y ago modified 2026-09-10 1 mo ago also GHSA-2mqj-m65w-jghx , PYSEC-2024-4 , EUVD-2024-0062
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 24%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi gitpython 3.1.41
- gitpython_project gitpython 3.1.41
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.32% chance of exploitation in the next 30 days, higher than 24% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | gitpython | <3.1.41 |
3.1.41 |
Affected products
- gitpython-developers GitPython
Classification
- Weakness
-
- CWE-426 Untrusted Search Path
References
-
github.com
/gitpython-developers/GitPython/pull/1792
web, patch, vendor-advisory, advisory
-
github.com
/gitpython-developers/GitPython/commit/ef3192cc414f2fd9978908454f6fd95243784c7f
web, patch
-
github.com
/gitpython-developers/GitPython/security/advisories/GHSA-2mqj-m65w-jghx
web, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-22190
advisory
-
github.com
/gitpython-developers/GitPython
package
-
github.com
/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2024-4.yaml
web
Sources
- CVE List CVE-2024-22190
- GitHub Advisory GHSA-2mqj-m65w-jghx
- NVD CVE-2024-22190
- OSV PYSEC-2024-4
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.