CVE-2024-22190
HIGH 7.8CVSS 3.1Untrusted search path under some conditions on Windows allows arbitrary code execution
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.
- Published
- 11 Jan 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-426
- Also known as
- GHSA-2mqj-m65w-jghxPYSEC-2024-4
- Sources
- NVDJSONOSV GHSA-2mqj-m65w-jghxJSONOSV PYSEC-2024-4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gitpython_project | gitpythoncpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:* |
< 3.1.41 | 3.1.41 |
| OSV | PyPI | gitpython | < 3.1.41 | 3.1.41 |
References
- https://github.com/gitpython-developers/GitPython/commit/ef3192cc414f2fd9978908454f6fd95243784c7f · Patch, WEB, FIX
- https://github.com/gitpython-developers/GitPython/pull/1792 · Patch, Vendor Advisory, WEB, ADVISORY
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2mqj-m65w-jghx · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2024-22190 · ADVISORY
- https://github.com/gitpython-developers/GitPython · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2024-4.yaml · WEB
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 11 Jan 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 11 Jan 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Jan 2024)