Debian DLA-2848-1 : libssh2 - LTS security update

high Nessus Plugin ID 156173

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

- In libssh2 before 1.9.0, kex_method_diffie_hellman_group_exchange_sha256_key_exchange in kex.c has an integer overflow that could lead to an out-of-bounds read in the way packets are read from the server. A remote attacker who compromises a SSH server may be able to disclose sensitive information or cause a denial of service condition on the client system when a user connects to the server. This is related to an
_libssh2_check_length mistake, and is different from the various issues fixed in 1.8.1, such as CVE-2019-3855. (CVE-2019-13115)

- In libssh2 v1.9.0 and earlier versions, the SSH_MSG_DISCONNECT logic in packet.c has an integer overflow in a bounds check, enabling an attacker to specify an arbitrary (out-of-bounds) offset for a subsequent memory read. A crafted SSH server may be able to disclose sensitive information or cause a denial of service condition on the client system when a user connects to the server. (CVE-2019-17498)

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

For Debian 9 stretch, these problems have been fixed in version 1.7.0-1+deb9u2.

See Also

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

https://www.debian.org/lts/security/2021/dla-2848

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

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

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

Plugin Details

Severity: High

ID: 156173

File Name: debian_DLA-2848.nasl

Version: 1.3

Type: local

Agent: unix

Published: 12/18/2021

Updated: 11/22/2023

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

Risk Information

VPR

Risk Factor: Medium

Score: 6.0

CVSS v2

Risk Factor: Medium

Base Score: 5.8

Temporal Score: 4.5

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

CVSS Score Source: CVE-2019-17498

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.3

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

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

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:libssh2-1, p-cpe:/a:debian:debian_linux:libssh2-1-dbg, p-cpe:/a:debian:debian_linux:libssh2-1-dev, cpe:/o:debian:debian_linux:9.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: 12/17/2021

Vulnerability Publication Date: 7/16/2019

Reference Information

CVE: CVE-2019-13115, CVE-2019-17498