CVE-2024-22190
Untrusted search path under some conditions on Windows allows arbitrary code execution
7.8
HIGH
CVSS 3.1
EPSS 0.35%
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.
How to fix CVE-2024-22190
To remediate CVE-2024-22190, upgrade the affected package to a fixed version below.
- —upgrade to 3.1.41 or later
- —upgrade to ef3192cc414f2fd9978908454f6fd95243784c7f or later
Is CVE-2024-22190 being exploited?
Low — EPSS is 0.4%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 3.1.41
- from 0, < ef3192cc414f2fd9978908454f6fd95243784c7f | from 0, < 3.1.41
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |