Vulnerability · Published Dec 18, 2023 · Assigned by redhat

CVE-2023-6918Libssh: missing checks for return values for digests

Low 3.7

In plain English

A low-severity security flaw in Red Hat Enterprise Linux 6 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.7Low
Exploit odds (30 days)1.4%top 27.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

A flaw was found in the libssh implements abstract layer for message digest (MD) operations implemented by different supported crypto backends. The return values from these were not properly checked, which could cause low-memory situations failures, NULL dereferences, crashes, or usage of the uninitialized memory as an input for the KDF. In this case, non-matching keys will result in decryption/integrity failures, terminating the connection.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8libssh0.9.6-14.el8ALSA-2024:3233
AlmaLinux:9libssh0.10.4-13.el9ALSA-2024:2504
AlmaLinux:8libssh-config0.9.6-14.el8ALSA-2024:3233
AlmaLinux:9libssh-config0.10.4-13.el9ALSA-2024:2504
AlmaLinux:8libssh-devel0.9.6-14.el8ALSA-2024:3233
AlmaLinux:9libssh-devel0.10.4-13.el9ALSA-2024:2504
Alpine:v3.20libssh0.10.6-r0ALPINE-CVE-2023-6918
Alpine:v3.21libssh0.10.6-r0ALPINE-CVE-2023-6918
Alpine:v3.22libssh0.10.6-r0ALPINE-CVE-2023-6918
Alpine:v3.23libssh0.10.6-r0ALPINE-CVE-2023-6918
Alpine:v3.24libssh0.10.6-r0ALPINE-CVE-2023-6918
Debian:12libssh0.10.6-0+deb12u1DEBIAN-CVE-2023-6918
Debian:12libssh0.10.6-0+deb12u1DSA-5591-1
Debian:13libssh0.10.6-1DEBIAN-CVE-2023-6918
Debian:14libssh0.10.6-1DEBIAN-CVE-2023-6918
Rocky Linux:8libssh0:0.9.6-14.el8RLSA-2024:3233
Rocky Linux:9libssh0:0.10.4-13.el9RLSA-2024:2504
Ubuntu:22.04:LTSlibssh0.9.6-2ubuntu0.22.04.3USN-6592-1
Ubuntu:22.04:LTSlibssh0.9.6-2ubuntu0.22.04.3UBUNTU-CVE-2023-6918

Affected products (as reported)

Weakness: CWE-252 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

References