Debian DLA-2936-1 : libgit2 - LTS security update

critical Nessus Plugin ID 159090

Synopsis

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

Description

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

Multiple vulnerabilities were found in libgit2, a low-level Git library, and are as follows: CVE-2018-8098 Integer overflow in the index.c:read_entry() function while decompressing a compressed prefix length in libgit2 before v0.26.2 allows an attacker to cause a denial of service (out-of-bounds read) via a crafted repository index file. CVE-2018-8099 Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 before v0.26.2, which allows an attacker to cause a denial of service via a crafted repository index file. CVE-2018-10887 It has been discovered that an unexpected sign extension in git_delta_apply function in delta-apply.c file may lead to an integer overflow which in turn leads to an out of bound read, allowing to read before the base object. An attacker may use this flaw to leak memory addresses or cause a Denial of Service. CVE-2018-10888 A missing check in git_delta_apply function in delta-apply.c file, may lead to an out-of-bound read while reading a binary delta file. An attacker may use this flaw to cause a Denial of Service. CVE-2018-15501 In ng_pkt in transports/smart_pkt.c in libgit2, a remote attacker can send a crafted smart-protocol ng packet that lacks a '\0' byte to trigger an out-of-bounds read that leads to DoS. CVE-2020-12278 path.c mishandles equivalent filenames that exist because of NTFS Alternate Data Streams. This may allow remote code execution when cloning a repository. This issue is similar to CVE-2019-1352. CVE-2020-12279 checkout.c mishandles equivalent filenames that exist because of NTFS short names. This may allow remote code execution when cloning a repository. This issue is similar to CVE-2019-1353. For Debian 9 stretch, these problems have been fixed in version 0.25.1+really0.24.6-1+deb9u1. We recommend that you upgrade your libgit2 packages. For the detailed security status of libgit2 please refer to its security tracker page at: https://security-tracker.debian.org/tracker/libgit2 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

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 libgit2 packages.

For Debian 9 stretch, these problems have been fixed in version 0.25.1+really0.24.6-1+deb9u1.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892961

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

https://www.debian.org/lts/security/2022/dla-2936

https://security-tracker.debian.org/tracker/CVE-2018-10887

https://security-tracker.debian.org/tracker/CVE-2018-10888

https://security-tracker.debian.org/tracker/CVE-2018-15501

https://security-tracker.debian.org/tracker/CVE-2018-8098

https://security-tracker.debian.org/tracker/CVE-2018-8099

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

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

https://security-tracker.debian.org/tracker/CVE-2020-12278

https://security-tracker.debian.org/tracker/CVE-2020-12279

https://packages.debian.org/source/stretch/libgit2

Plugin Details

Severity: Critical

ID: 159090

File Name: debian_DLA-2936.nasl

Version: 1.5

Type: local

Agent: unix

Published: 3/21/2022

Updated: 1/24/2025

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

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 7.3

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

CVSS Score Source: CVE-2019-1352

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

CVSS Score Source: CVE-2020-12279

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:libgit2-dev, cpe:/o:debian:debian_linux:9.0, p-cpe:/a:debian:debian_linux:libgit2-24

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: 3/21/2022

Vulnerability Publication Date: 3/12/2018

Reference Information

CVE: CVE-2018-10887, CVE-2018-10888, CVE-2018-15501, CVE-2018-8098, CVE-2018-8099, CVE-2019-1352, CVE-2019-1353, CVE-2020-12278, CVE-2020-12279

IAVA: 2019-A-0454-S