CVE-2025-5987
HIGH 8.1
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.
Key facts
- Vendor: libssh
- CVSS 3.1: 8.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
- EPSS (30-day exploitation probability): 1.73%
- Published: 2025-07-07
- Last modified: 2026-11-23
- Weakness: CWE-393
Data aggregated from NVD, CISA KEV, FIRST EPSS and OSV.dev. Updated 2026-12-03.
Get alerts and watchlists for vulnerabilities like this · Browse all vulnerabilities