CVE catalog

CVE-2023-6918

libssh: CVE-2023-6918

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
1.41% · Oct 25, 2026

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. libssh: Missing checks for return values for digests This vulnerability in the libssh abstract layer for message digest operations is deemed to have a low impact due to several mitigating factors. Primarily, the absence of proper checks on return values from supported crypto backends may lead to low-memory situations, failures, NULL dereferences, crashes, or the utilization of uninitialized memory in the Key Derivation Function (KDF). While these potential consequences could disrupt the system, their likelihood is considered low, contributing to the low impact classification. The maintainers of libssh, in conjunction with Red Hat, have assigned a CVSS3.1 score of 3.7 to this vulnerability. While the score acknowledges the existence of a vulnerability, the assigned value falls within the lower range of the scale, indicating a relatively modest level of risk. Moreover, the practical exploitability of this vulnerability is characterized as theoretical and highly unlikely to yield tangible results. The difficulty in successfully exploiting the flaw adds a layer of security, further diminishing the potential impact. While acknowledging the risk of non-matching keys leading to decryption/integrity failures and connection termination, the combination of the low likelihood of exploitation and the relatively lower severity score results in an overall assessment of low impact. The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibsshsid0.12.2-1fixed
Debianlibsshforky0.12.2-1fixed
Debianlibsshtrixie0.11.5-0+deb13u1fixed
Debianlibsshtrixie-security0.11.5-0+deb13u1fixed
Debianlibsshbookworm0.10.6-0+deb12u2fixed
Debianlibsshbookworm-security0.10.6-0+deb12u3fixed
Ubuntulibsshpro0.7.5-1vulnerable
Ubuntulibsshpro0.8.0~20170825.94fa1e38-1vulnerable
Ubuntulibsshpro0.8.0~20170825.94fa1e38-1build1vulnerable
Ubuntulibsshpro0.8.0~20170825.94fa1e38-1ubuntu0.1vulnerable
Ubuntulibsshpro0.8.0~20170825.94fa1e38-1ubuntu0.2vulnerable
Ubuntulibsshpro0.8.0~20170825.94fa1e38-1ubuntu0.5vulnerable
Ubuntulibsshpro0.8.0~20170825.94fa1e38-1ubuntu0.6vulnerable
Ubuntulibsshpro0.8.0~20170825.94fa1e38-1ubuntu0.7vulnerable
Ubuntulibsshpro0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3fixed
Ubuntulibssh20.040.9.0-1ubuntu1vulnerable
Ubuntulibssh20.040.9.0-1ubuntu4vulnerable
Ubuntulibssh20.040.9.0-1ubuntu5vulnerable
Ubuntulibssh20.040.9.3-2ubuntu1vulnerable
Ubuntulibssh20.040.9.3-2ubuntu2vulnerable
Ubuntulibssh20.040.9.3-2ubuntu2.1vulnerable
Ubuntulibssh20.040.9.3-2ubuntu2.2vulnerable
Ubuntulibssh20.040.9.3-2ubuntu2.3vulnerable
Ubuntulibssh20.040.9.3-2ubuntu2.4vulnerable
Ubuntulibssh20.040.9.3-2ubuntu2.5fixed
Ubuntulibssh22.040.9.6-1vulnerable
Ubuntulibssh22.040.9.6-1build1vulnerable
Ubuntulibssh22.040.9.6-2vulnerable
Ubuntulibssh22.040.9.6-2build1vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.1vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.2vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.3fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibsshsourcesid0.10.6-1not yet assignedNot reported[1059059]
Debianlibsshsourceforky0.10.6-1not yet assignedNot reported[1059059]
Debianlibsshsourcetrixie0.10.6-1not yet assignedNot reported[1059059]
Debianlibsshsourcebookworm0.10.6-0+deb12u1not yet assignedNot reported[1059059]
Ubuntulibsshdebpro0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3Not reportedUBUNTU-CVE-2023-6918Not reported
Ubuntulibsshdeb20.040.9.3-2ubuntu2.5Not reportedUBUNTU-CVE-2023-6918Not reported
Ubuntulibsshdeb22.040.9.6-2ubuntu0.22.04.3Not reportedUBUNTU-CVE-2023-6918Not reported

[Debian bug #1059059]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References