CVE-2024-22190Gitpython Project Gitpython
High 7.8
Follow: this CVE · Gitpython Project · Gitpython Project Gitpython We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 25
- Auth required
- Yes
- Published
- Jan 11, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-426
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Gitpython.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | gitpython |
< 3.1.41 |
3.1.41 |
pip install "gitpython>=3.1.41" |
| PyPI | gitpython |
< 3.1.41 |
3.1.41 |
pip install "gitpython>=3.1.41" |
Per OSV / GitHub Advisories (GHSA-2mqj-m65w-jghx, PYSEC-2024-4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitpython_project | gitpython | < 3.1.41 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch Vendor Advisory
- github.com Vendor Advisory