CVE Catalog

CVE-2025-5987

HighCVSS 8.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.44%

70th percentile - higher than 70% of all known CVEs

Summary

A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library. If an attacker exhausts the heap space, the error is not detected and may lead to libssh using a partially initialized cipher context. This occurs because the OpenSSL error code aliases with SSH_OK, preventing proper error detection.

Risk Assessment

This vulnerability can lead to undefined behavior, including compromised data confidentiality and integrity or system crashes, posing a significant security risk to the organization.

Recommendation

Immediately update libssh to a version that fixes the OpenSSL error handling for the ChaCha20 cipher. Until updated, avoid using the ChaCha20 cipher with OpenSSL.

Other vulnerabilities in libssh

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS