CVE-2025-5987

ADVISORY - nist

Summary

A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library. If an attacker manages to exhaust the heap space, this error is not detected and may lead to libssh using a partially initialized cipher context. This occurs because the OpenSSL error code returned aliases with the SSH_OK code, resulting in libssh not properly detecting the error returned by the OpenSSL library. This issue can lead to undefined behavior, including compromised data confidentiality and integrity or crashes.

EPSS Score: 0.01231 (0.794)

Common Weakness Enumeration (CWE)

ADVISORY - nist

Return of Wrong Status Code

ADVISORY - redhat

Return of Wrong Status Code


Sign in to Docker Scout

See which of your images are affected by this CVE and how to fix them by signing into Docker Scout.

Sign in