Advisory

PYSEC-2022-42992

Also known as: CVE-2022-24439, GHSA-hcpj-qp55-gfph

Summary

The record has no summary.

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

Not rated by the source.

Dates

Published
2022-12-06 05:15 UTC
Modified
2026-06-10 17:01 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: PyPA Advisory Database · CC BY 4.0

Sources & licences