CVE-2025-5987Libssh: invalid return code for chacha20 poly1305 with openssl backend
Updated under an hour ago ()
Does this affect you?
It affects Red Hat Enterprise Linux 10 and 5 other products. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 8.1 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness (CWE)
- CWE-393
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- redhat
- NVD analysis
- Modified
- Record last updated
- Oct 16, 2026
- First seen by InfoSec Signals
- Oct 16, 2026
Affected products
Red Hat Red Hat Enterprise Linux 10 redhat:enterprise_linux | from 0:0.11.1-5.el10_1 not affected | CNA record |
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support redhat:enterprise_linux_eus | from 0:0.11.1-4.el10_0.1 not affected | CNA record |
from 0:0.10.4-9.el9_2.2 not affected | CNA record | |
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support redhat:rhel_eus | from 0:0.10.4-13.el9_4.2 not affected | CNA record |
Red Hat Red Hat OpenShift Container Platform 4.13 redhat:openshift | from 413.92.202602240113-0 not affected | CNA record |
libssh libssh libssh:libssh | from 0.10.0 before 0.11.2 | NVD |
References
- https://access.redhat.com/errata/RHSA-2025:23483vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2025:23484vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2026:0427vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2026:0428vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2026:0430vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2026:0431vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2026:0702vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2026:0978vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2026:0980vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2026:0985vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2026:0996vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2026:1539vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2026:1541vendor-advisory, x-refsource-redhat
- https://access.redhat.com/errata/RHSA-2026:3415vendor-advisory, x-refsource-redhat
- https://access.redhat.com/security/cve/CVE-2025-5987vdb-entry, x-refsource-redhat, third-party-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2376219issue-tracking, x-refsource-redhat, third-party-advisory
- https://www.libssh.org/security/advisories/CVE-2025-5987.txt
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.