Arbitrary Code Injection Affecting python-gitpython package, versions *


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
5.38% (92nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-PYTHONGITPYTHON-9838272
  • published28 Apr 2025
  • disclosed5 Dec 2022

Introduced: 5 Dec 2022

CVE-2022-24439  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:10 python-gitpython.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-gitpython package and not the python-gitpython package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

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.

References

CVSS Base Scores

version 3.1