
CVE catalog
CVE-2023-6918
libssh: CVE-2023-6918
- Severity
- Medium · CVSS 5.3
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libssh | sid | 0.12.2-1 | fixed |
| Debian | libssh | forky | 0.12.2-1 | fixed |
| Debian | libssh | trixie | 0.11.5-0+deb13u1 | fixed |
| Debian | libssh | trixie-security | 0.11.5-0+deb13u1 | fixed |
| Debian | libssh | bookworm | 0.10.6-0+deb12u2 | fixed |
| Debian | libssh | bookworm-security | 0.10.6-0+deb12u3 | fixed |
| Ubuntu | libssh | pro | 0.7.5-1 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1build1 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.1 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.2 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.5 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.6 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.7 | vulnerable |
| Ubuntu | libssh | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3 | fixed |
| Ubuntu | libssh | 20.04 | 0.9.0-1ubuntu1 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.0-1ubuntu4 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.0-1ubuntu5 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu1 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.1 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.2 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.3 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.4 | vulnerable |
| Ubuntu | libssh | 20.04 | 0.9.3-2ubuntu2.5 | fixed |
| Ubuntu | libssh | 22.04 | 0.9.6-1 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-1build1 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2build1 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2ubuntu0.22.04.1 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2ubuntu0.22.04.2 | vulnerable |
| Ubuntu | libssh | 22.04 | 0.9.6-2ubuntu0.22.04.3 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libssh | source | sid | 0.10.6-1 | not yet assigned | Not reported | [1059059] |
| Debian | libssh | source | forky | 0.10.6-1 | not yet assigned | Not reported | [1059059] |
| Debian | libssh | source | trixie | 0.10.6-1 | not yet assigned | Not reported | [1059059] |
| Debian | libssh | source | bookworm | 0.10.6-0+deb12u1 | not yet assigned | Not reported | [1059059] |
| Ubuntu | libssh | deb | pro | 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3 | Not reported | UBUNTU-CVE-2023-6918 | Not reported |
| Ubuntu | libssh | deb | 20.04 | 0.9.3-2ubuntu2.5 | Not reported | UBUNTU-CVE-2023-6918 | Not reported |
| Ubuntu | libssh | deb | 22.04 | 0.9.6-2ubuntu0.22.04.3 | Not reported | UBUNTU-CVE-2023-6918 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://access.redhat.com/errata/RHSA-2024:2504]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2024_3233.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-6918]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-6918]
- [https://security-tracker.debian.org/tracker/CVE-2023-6918]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1307.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]