Advisory

GHSA-hcpj-qp55-gfph

Also known as: CVE-2022-24439, PYSEC-2022-42992

Summary

GitPython vulnerable to Remote Code Execution due to improper user input validation

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-12-06 06:30 UTC
Modified
2025-11-04 16:49 UTC

Affected packages and fixes

gitpython

PyPI · All systems

Affected

  • introduced 0, fixed 3.1.30 (ecosystem)

Fixed versions

3.1.30

Fix

  • Fixed version 3.1.30
    pip install --upgrade gitpython==3.1.30

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences