GLSA-202311-01 : GitPython: Code Execution via Crafted Input

critical Nessus Plugin ID 184131

Description

The remote host is affected by the vulnerability described in GLSA-202311-01 (GitPython: Code Execution via Crafted Input)

- 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. (CVE-2022-24439)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

All GitPython users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose >=dev-python/GitPython-3.1.30

See Also

https://security.gentoo.org/glsa/202311-01

https://bugs.gentoo.org/show_bug.cgi?id=884623

Plugin Details

Severity: Critical

ID: 184131

File Name: gentoo_GLSA-202311-01.nasl

Version: 1.0

Type: local

Published: 11/1/2023

Updated: 11/1/2023

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2022-24439

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:gitpython, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 11/1/2023

Vulnerability Publication Date: 12/6/2022

Reference Information

CVE: CVE-2022-24439