Live threats

All CVEs / Gitpython Project

CVE-2022-24439Gitpython Project Gitpython

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gitpython.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gitpython_projectgitpython< 3.1.30
fedoraprojectfedora36
fedoraprojectfedora37
fedoraprojectfedora38
debiandebian_linux10.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.