# CVE-2024-22190: Untrusted search path under some conditions on Windows allows arbitrary code execution

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-01-11 · Modified: 2024-09-03
- Aliases: GHSA-2mqj-m65w-jghx, PYSEC-2024-4, UBUNTU-CVE-2024-22190, CGA-3vg5-m4p3-mjf9, CGA-v8vf-2w63-46gg
- Record: https://cvemate.com/vulnerability/CVE-2024-22190 · JSON: https://cvemate.com/vulnerability/CVE-2024-22190/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.316%, percentile 26.454%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard checkov (Chainguard): \< 3.0.34-r1
- wolfi checkov (Wolfi): \< 3.0.34-r1
- ubuntu python-git (Ubuntu): All versions (No fix recorded)
- gitpython\_project gitpython: \< 3.1.41
- gitpython-developers gitpython: \< 3.1.41
- PyPI gitpython (PyPI): \< ef3192cc414f2fd9978908454f6fd95243784c7f \| \< 3.1.41

## References

- <https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2mqj-m65w-jghx>
- <https://github.com/gitpython-developers/GitPython/pull/1792>
- <https://github.com/gitpython-developers/GitPython/commit/ef3192cc414f2fd9978908454f6fd95243784c7f>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-22190>
- <https://github.com/gitpython-developers/GitPython>
- <https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2024-4.yaml>
- <https://ubuntu.com/security/CVE-2024-22190>
- <https://www.cve.org/CVERecord?id=CVE-2024-22190>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22190.json>

---

Data as of 2026-12-05T04:59:14.055Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
