CVE-2024-22190
published high CVSS 3.1 · 7.8Untrusted search path under some conditions on Windows allows arbitrary code execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gitpython-developers | — | GitPython< 3.1.41 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gitpython-developers | GitPython | < 3.1.41 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-426 CWE-426: Untrusted Search Path
References
3Provider assertions
3GitHub_M · cna
Untrusted search path under some conditions on Windows allows arbitrary code execution
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 00933f70f1da94077d4b627fa4cb34170ee8cb64375f7a6aea946706953a4f38
- Ingested
- 23 Sep 2026, 08:19:14 UTC
- Source record
- Official CVE record