GitHub Advisoryadvisory · PyPI

GHSA-hcpj-qp55-gfph GitPython vulnerable to Remote Code Execution due to improper user input validation

CRITICAL Published 2022-12-06 Modified 2025-11-04 Official page ↗
Aliases
CVE-2022-24439
Ecosystem
PyPI
Packages
GitPython
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-20, CWE-94
Reviewed
2022-12-06

Affected packages

• PyPI GitPython: < 3.1.30 → fixed in 3.1.30

Description

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.

Related

Alias · CVE (1)

  • CVE-2022-24439 All versions of package gitpython are vulnerable to Remote Code Execution (RCE) due to improper user input validation, which makes it… vulnerability

Weakness · CWE (2)

  • CWE-20 Improper Input Validation weakness
  • CWE-94 Improper Control of Generation of Code weakness

References