Debian dla-3589 : python-git - security update

medium Nessus Plugin ID 182377

Synopsis

The remote Debian host is missing a security-related update.

Description

The remote Debian 10 host has packages installed that are affected by a vulnerability as referenced in the dla-3589 advisory.

------------------------------------------------------------------------- Debian LTS Advisory DLA-3589-1 [email protected] https://www.debian.org/lts/security/ Guilhem Moulin September 29, 2023 https://wiki.debian.org/LTS
-------------------------------------------------------------------------

Package : python-git Version : 2.1.11-1+deb10u2 CVE ID : CVE-2023-41040

Santos Gallegos discovered a blind local file inclusion in python-git, a Python library to interact with Git repositories, which could lead to denial of service or potentially information disclosure.

In order to resolve some git references, python-git reads files from the .git directory but, due to improper location check, an attacker can pass a file located outside this directory thereby making python-git read arbitrary file on the system.

It remains unclear whether the attacker can gain access to actual file content, but denial of service can be achieved by passing a large or infinite file such as /dev/random.

For Debian 10 buster, this problem has been fixed in version 2.1.11-1+deb10u2.

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: PGP signature

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

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

Solution

Upgrade the python-git packages.

See Also

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

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

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

Plugin Details

Severity: Medium

ID: 182377

File Name: debian_DLA-3589.nasl

Version: 1.1

Type: local

Agent: unix

Published: 9/29/2023

Updated: 1/22/2025

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.3

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 5

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

CVSS Score Source: CVE-2023-41040

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Temporal Score: 5.9

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

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

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:10.0, p-cpe:/a:debian:debian_linux:python-git, 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: 9/29/2023

Vulnerability Publication Date: 8/26/2023

Reference Information

CVE: CVE-2023-41040