Debian dla-3939 : python-git-doc - security update

critical Nessus Plugin ID 209877

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 11 host has packages installed that are affected by multiple vulnerabilities as referenced in the dla-3939 advisory.

------------------------------------------------------------------------- Debian LTS Advisory DLA-3939-1 [email protected] https://www.debian.org/lts/security/ Daniel Leidert October 29, 2024 https://wiki.debian.org/LTS
-------------------------------------------------------------------------

Package : python-git Version : 3.1.14-1+deb11u1 CVE ID : CVE-2022-24439 CVE-2023-40267 CVE-2023-41040 Debian Bug : 1027163 1043503

GitPython provides object model access to a Git repository.

CVE-2022-24439, CVE-2023-40267 (follow-up)

Remote Code Execution (RCE) is possible 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-2023-41040

GitPython reads files from the `.git` directory, in some places the name of the file being read is provided by the user, GitPython doesn't check if this file is located outside the `.git` directory.
This allows an attacker to make GitPython read any file from the system.

For Debian 11 bullseye, these problems have been fixed in version 3.1.14-1+deb11u1.

We recommend that you upgrade your python-git packages.

For the detailed security status of python-git please refer to its security tracker page at:
https://security-tracker.debian.org/tracker/python-git

Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: https://wiki.debian.org/LTS



Attachment:
signature.asc Description: This is a digitally signed message part

Tenable has extracted the preceding description block directly from the Debian security advisory.

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

Solution

Upgrade the python-git-doc packages.

See Also

https://security-tracker.debian.org/tracker/source-package/python-git

https://security-tracker.debian.org/tracker/CVE-2022-24439

https://security-tracker.debian.org/tracker/CVE-2023-40267

https://security-tracker.debian.org/tracker/CVE-2023-41040

https://packages.debian.org/source/bullseye/python-git

Plugin Details

Severity: Critical

ID: 209877

File Name: debian_DLA-3939.nasl

Version: 1.1

Type: local

Agent: unix

Published: 10/29/2024

Updated: 10/29/2024

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Nessus Agent, 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-2023-40267

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: cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:python-git-doc, p-cpe:/a:debian:debian_linux:python3-git

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 10/29/2024

Vulnerability Publication Date: 12/6/2022

Reference Information

CVE: CVE-2022-24439, CVE-2023-40267, CVE-2023-41040