CVE-2025-5987: Libssh: invalid return code for chacha20 poly1305 with openssl backend
Redhat · libssh
Vendor fix available · Affected: Redhat libssh · Exploitation: possible (1 to 10%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 77% of scored CVEs
DescriptionCVE.org
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 products20
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- libsshfrom 0.10.0 before 0.11.2
- Red Hat · Red Hat Enterprise Linux 10Versions not stated
- Red Hat · Red Hat Enterprise Linux 10.0 Extended Update SupportVersions not stated
- Red Hat · Red Hat Enterprise Linux 9Versions not stated
- Red Hat · Red Hat Enterprise Linux 9Versions not stated
- Red Hat · Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsVersions not stated
- Red Hat · Red Hat Enterprise Linux 9.4 Extended Update SupportVersions not stated
- Red Hat · Red Hat Enterprise Linux 9.6 Extended Update SupportVersions not stated
- Red Hat · Red Hat OpenShift Container Platform 4.13Versions not stated
- Red Hat · Red Hat OpenShift Container Platform 4.14Versions not stated
- Red Hat · Red Hat OpenShift Container Platform 4.15Versions not stated
- Red Hat · Red Hat OpenShift Container Platform 4.16Versions not stated
- Red Hat · Red Hat OpenShift Container Platform 4.17Versions not stated
- Red Hat · Red Hat OpenShift Container Platform 4.18Versions not stated
- Red Hat · Red Hat OpenShift Container Platform 4.19Versions not stated
- Red Hat · Red Hat OpenShift Container Platform 4.20Versions not stated
- Red Hat · Red Hat Enterprise Linux 6Versions not stated
- Red Hat · Red Hat Enterprise Linux 7Versions not stated
- Red Hat · Red Hat Enterprise Linux 8Versions not stated
- Red Hat · Red Hat OpenShift Container Platform 4Versions not stated
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
CoverageNo articles yet
No CyberSIXT article names CVE-2025-5987 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-393cwe.mitre.org
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
- Vendor advisoryaccess.redhat.com
5 more references are in the CVE record.