Debian DLA-3589-1 : python-git - LTS 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.

- GitPython is a python library used to interact with Git repositories. In order to resolve some git references, 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. This vulnerability is present in https://github.com/gitpython- developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/refs/symbolic.py#L174-L175. That code joins the base directory with a user given string without checking if the final path is located outside the base directory. This vulnerability cannot be used to read the contents of files but could in theory be used to trigger a denial of service for the program. This issue has not yet been addressed.
(CVE-2023-41040)

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.

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

See Also

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

https://www.debian.org/lts/security/2023/dla-3589

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.0

Type: local

Agent: unix

Published: 9/29/2023

Updated: 9/29/2023

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, 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: 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, cpe:/o:debian:debian_linux:10.0

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