libssh MD Ops Return Value Check Failure (CVE-2023-6918)
CVE-2023-6918 Published on December 19, 2023

Libssh: missing checks for return values for digests
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.

Vendor Advisory Vendor Advisory Vendor Advisory NVD

Vulnerability Analysis

CVE-2023-6918 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a small impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
HIGH
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
NONE
Integrity Impact:
NONE
Availability Impact:
LOW

Timeline

Reported to Red Hat.

Made public.

Weakness Type

Unchecked Return Value

The software does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions. Two common programmer assumptions are "this function call can never fail" and "it doesn't matter if this function call fails". If an attacker can force the function to fail or otherwise return a value that is not expected, then the subsequent program logic could lead to a vulnerability, because the software is not in a state that the programmer assumes. For example, if the program calls a function to drop privileges but does not check the return code to ensure that privileges were successfully dropped, then the program will continue to operate with the higher privileges.


Products Associated with CVE-2023-6918

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2023-6918 are published in these products:

Affected Versions

Red Hat OSE-OSC-1.6-RHEL-9: Red Hat OSE-OSC-1.6-RHEL-9: Red Hat OSE-OSC-1.6-RHEL-9: Red Hat OSE-OSC-1.6-RHEL-9: Red Hat OSE-OSC-1.6-RHEL-9: Red Hat OSE-OSC-1.6-RHEL-9: Red Hat OSE-OSC-1.6-RHEL-9: Red Hat OSE-OSC-1.6-RHEL-9: Red Hat Enterprise Linux 8: Red Hat Enterprise Linux 8: Red Hat Enterprise Linux 9: Red Hat Enterprise Linux 9: Red Hat Enterprise Linux 6: Red Hat Enterprise Linux 7: Red Hat Enterprise Linux 7:

Exploit Probability

EPSS
1.45%
Percentile
74.22%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.