CVE-2022-24439Gitpython Project Gitpython
Critical 9.8 No auth needed
Follow: this CVE · Gitpython Project · Gitpython Project Gitpython We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 6.1% probability of exploitation in 30 days · percentile 94
- Auth required
- No
- Published
- Dec 6, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
All versions of package gitpython are vulnerable to Remote Code Execution (RCE) due to improper user input validation, which makes it possible to inject a maliciously crafted remote URL into the clone command. Exploiting this vulnerability is possible because the library makes external calls to git without sufficient sanitization of input arguments.
What to do
- Apply the vendor's security update for Gitpython.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | gitpython |
< 3.1.30 |
3.1.30 |
pip install "gitpython>=3.1.30" |
| PyPI | gitpython |
< 3.1.30 |
3.1.30 |
pip install "gitpython>=3.1.30" |
Per OSV / GitHub Advisories (GHSA-hcpj-qp55-gfph, PYSEC-2022-42992). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitpython_project | gitpython | < 3.1.30 |
| fedoraproject | fedora | 36 |
| fedoraproject | fedora | 37 |
| fedoraproject | fedora | 38 |
| debian | debian_linux | 10.0 |
Official advisories
- Red Hat Security Advisory: Satellite 6.13.5 Async Security Update · Red Hat · RHSA-2023:5931 · Oct 2, 2024 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org Mailing List Third Party Advisory
- lists.fedoraproject.org Mailing List Third Party Advisory
- lists.fedoraproject.org Mailing List Third Party Advisory
- lists.fedoraproject.org Mailing List Third Party Advisory
- security.gentoo.org Third Party Advisory
- security.snyk.io Exploit Third Party Advisory
- lists.debian.org