A plain-language summary of this CVE is being written; the description below is the NVD's own text.
Description
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
From the NVD's configuration data (CPE), vendor first.
- Libssh libssh
Weakness type
References
- access.redhat.com /errata/RHSA-2025:23483
- access.redhat.com /errata/RHSA-2025:23484
- access.redhat.com /errata/RHSA-2026:0427
- access.redhat.com /errata/RHSA-2026:0428
- access.redhat.com /errata/RHSA-2026:0430
- access.redhat.com /errata/RHSA-2026:0431
- access.redhat.com /errata/RHSA-2026:0702
- access.redhat.com /errata/RHSA-2026:0978
- access.redhat.com /errata/RHSA-2026:0980
- access.redhat.com /errata/RHSA-2026:0985
- access.redhat.com /errata/RHSA-2026:0996
- access.redhat.com /errata/RHSA-2026:1539
- access.redhat.com /errata/RHSA-2026:1541
- access.redhat.com /errata/RHSA-2026:3415
- access.redhat.com /security/cve/CVE-2025-5987
- bugzilla.redhat.com /show_bug.cgi
- www.libssh.org /security/advisories/CVE-2025-5987.txt
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning