cvedb.io
CVE-2025-5987
HIGH · CVSS 8.1
EPSS exploitation probability: 0%
Published 2025-07-07T15:15:28.180 · Last modified 2026-06-30T11:16:26.163

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.

Affected products

libssh — libssh

Does this affect you?

Add your gear to cvedb and we'll alert you only when libssh ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.