Skip to content

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

High severity GitHub Reviewed Published Dec 6, 2022 to the GitHub Advisory Database • Updated Jan 17, 2024

Package

pip GitPython (pip)

Affected versions

<= 3.1.29

Patched versions

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.

References

Published by the National Vulnerability Database Dec 6, 2022
Published to the GitHub Advisory Database Dec 6, 2022
Reviewed Dec 6, 2022
Last updated Jan 17, 2024

Severity

High
8.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2022-24439

GHSA ID

GHSA-hcpj-qp55-gfph

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.