cve.bz

CVE-2023-6918 Unchecked Return Value

5.3 mediumEPSS 1.4%Fix available

Medium (5.3). EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-252 Unchecked Return Value
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-6918 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-6918?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-6918?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-6918 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:0.9.6-14.el8
Red Hat Enterprise Linux 90:0.10.4-13.el9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libssh0.9.8-0+deb11u1DSA-5591-1
Debian12libssh0.10.6-0+deb12u1DEBIAN-CVE-2023-6918 DSA-5591-1
Debian13, 14libssh0.10.6-1DEBIAN-CVE-2023-6918
Ubuntu20.04:LTSlibssh0.9.3-2ubuntu2.5UBUNTU-CVE-2023-6918 USN-6592-1
Ubuntu22.04:LTSlibssh0.9.6-2ubuntu0.22.04.3UBUNTU-CVE-2023-6918 USN-6592-1
UbuntuPro:16.04:LTSlibssh0.6.3-4.3ubuntu0.6+esm1UBUNTU-CVE-2023-6918 USN-6592-2
UbuntuPro:18.04:LTSlibssh0.8.0~20170825.94fa1e38-1ubuntu0.7+esm3UBUNTU-CVE-2023-6918 USN-6592-2
Red Hatenterprise_linux:8::appstreamlibssh-devel, libssh-debuginfo, libssh-debugsource0:0.9.6-14.el8RHSA-2024:3233
Red Hatenterprise_linux:8::baseoslibssh, libssh-config, libssh-debuginfo and 1 more0:0.9.6-14.el8RHSA-2024:3233
Red Hatenterprise_linux:9::appstreamlibssh-devel, libssh-debuginfo, libssh-debugsource0:0.10.4-13.el9RHSA-2024:2504
Red Hatenterprise_linux:9::baseoslibssh, libssh-config, libssh-debuginfo and 1 more0:0.10.4-13.el9RHSA-2024:2504
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 6 morelibssh0.9.8-150200.13.3.1SUSE-SU-2024:0525-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 8 morelibssh0.9.8-150400.3.3.1SUSE-SU-2024:0140-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5libssh0.9.8-3.12.2SUSE-SU-2024:0539-1
openSUSELeap 15.5, Leap Micro 5.3, Leap Micro 5.4libssh0.9.8-150400.3.3.1SUSE-SU-2024:0140-1
openSUSETumbleweedlibssh0.10.6-1.1openSUSE-SU-2024:13638-1
AlmaLinux8libssh, libssh-devel, libssh-config0.9.6-14.el8ALSA-2024:3233
AlmaLinux9libssh, libssh-devel, libssh-config0.10.4-13.el9ALSA-2024:2504
Rocky Linux8libssh0:0.9.6-14.el8RLSA-2024:3233
Rocky Linux9libssh0:0.10.4-13.el9RLSA-2024:2504
Alpinev3.19, v3.20, v3.21 and 3 morelibssh0.10.6-r0ALPINE-CVE-2023-6918
Azure Linux2libssh0.10.6-1AZL-32199
Azure Linux3libssh0.10.6-1AZL-34943
Alpaquita23, streamlibssh0.10.6-r0BELL-CVE-2023-6918

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's statement

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.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libssh-0:0.9.6-14.el8Fixed 2024-05-22RHSA-2024:3233
Red Hat Enterprise Linux 9libssh-0:0.10.4-13.el9Fixed 2024-04-30RHSA-2024:2504
Red Hat Enterprise Linux 6libssh2Out of support scope
Red Hat Enterprise Linux 7libsshOut of support scope
Red Hat Enterprise Linux 7libssh2Out of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-6918.

References

Check your stackJSON