Debian dla-3867 : git - security update

critical Nessus Plugin ID 206452

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-3867 advisory.

------------------------------------------------------------------------- Debian LTS Advisory DLA-3867-1 [email protected] https://www.debian.org/lts/security/ Sean Whitton September 03, 2024 https://wiki.debian.org/LTS
-------------------------------------------------------------------------

Package : git Version : 1:2.30.2-1+deb11u3 CVE ID : CVE-2019-1387 CVE-2023-25652 CVE-2023-25815 CVE-2023-29007 CVE-2024-32002 CVE-2024-32004 CVE-2024-32021 CVE-2024-32465 Debian Bug : 1034835 1071160

Multiple vulnerabilities were discovered in git, a fast, scalable and distributed revision control system.

CVE-2019-1387

It was possible to bypass the previous check for this vulnerability using parallel cloning, or the --recurse-submodules option to git-checkout(1).

CVE-2023-25652

Feeding specially-crafted input to 'git apply --reject' could overwrite a path outside the working tree with partially controlled contents, corresponding to the rejected hunk or hunks from the given patch.

CVE-2023-25815

Low-privileged users could inject malicious messages into Git's output under MINGW.

CVE-2023-29007

A specially-crafted .gitmodules file with submodule URLs longer than 1024 characters could be used to inject arbitrary configuration into $GIT_DIR/config.

CVE-2024-32002

Repositories with submodules could be specially-crafted to write hooks into .git/ which would then be executed during an ongoing clone operation.

CVE-2024-32004

A specially-crafted local repository could cause the execution of arbitrary code when cloned by another user.

CVE-2024-32021

When cloning a local repository that contains symlinks via the filesystem, Git could have created hardlinks to arbitrary user-readable files on the same filesystem as the target repository in the objects/ directory.

CVE-2024-32465

When cloning a local repository obtained from a downloaded archive, hooks in that repository could be used for arbitrary code execution.

For Debian 11 bullseye, these problems have been fixed in version 1:2.30.2-1+deb11u3.

We recommend that you upgrade your git packages.

For the detailed security status of git please refer to its security tracker page at:
https://security-tracker.debian.org/tracker/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 these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade the git packages.

See Also

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

https://security-tracker.debian.org/tracker/CVE-2019-1387

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

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

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

https://security-tracker.debian.org/tracker/CVE-2024-32002

https://security-tracker.debian.org/tracker/CVE-2024-32004

https://security-tracker.debian.org/tracker/CVE-2024-32021

https://security-tracker.debian.org/tracker/CVE-2024-32465

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

Plugin Details

Severity: Critical

ID: 206452

File Name: debian_DLA-3867.nasl

Version: 1.1

Type: local

Agent: unix

Published: 9/3/2024

Updated: 9/3/2024

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

Risk Information

VPR

Risk Factor: Critical

Score: 9.2

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

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

CVSS Score Source: CVE-2019-1387

CVSS v3

Risk Factor: Critical

Base Score: 9

Temporal Score: 8.1

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

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

CVSS Score Source: CVE-2024-32002

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:git-all, p-cpe:/a:debian:debian_linux:git-cvs, p-cpe:/a:debian:debian_linux:git, p-cpe:/a:debian:debian_linux:git-daemon-sysvinit, p-cpe:/a:debian:debian_linux:git-gui, p-cpe:/a:debian:debian_linux:git-mediawiki, p-cpe:/a:debian:debian_linux:git-email, p-cpe:/a:debian:debian_linux:git-daemon-run, p-cpe:/a:debian:debian_linux:git-doc, p-cpe:/a:debian:debian_linux:git-svn, p-cpe:/a:debian:debian_linux:gitk, p-cpe:/a:debian:debian_linux:git-man, p-cpe:/a:debian:debian_linux:gitweb, p-cpe:/a:debian:debian_linux:git-el

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/3/2024

Vulnerability Publication Date: 12/10/2019

Reference Information

CVE: CVE-2019-1387, CVE-2023-25652, CVE-2023-25815, CVE-2023-29007, CVE-2024-32002, CVE-2024-32004, CVE-2024-32021, CVE-2024-32465