Home / Red Hat / Red Hat Enterprise Linux 10 / CVE-2025-5987
CVE-2025-5987: is it exploited, and which versions of Red Hat Enterprise Linux 10 are affected and fixed?
CVE-2025-5987 is a return of Wrong Status Code vulnerability in Red Hat Enterprise Linux 10. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: libssh from 0.10.0 before 0.11.2 and Red Hat OpenShift Container Platform 4 all versions (the record names no range) (CVE record by redhat). Fixed in 0.11.2, 0:0.11.1-5.el10_1, 0:0.11.1-4.el10_0.1, 0:0.10.4-17.el9_7 and 2 more (CVE record by redhat). Severity: High (8.1, CVSS 3.1, from redhat).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 28, 2026, 17:54 UTC and NVD November 24, 2026, 00:08 UTC.
What is CVE-2025-5987?
Libssh: invalid return code for chacha20 poly1305 with openssl backend
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.
From the CVE record by redhat, last updated November 23, 2026, 22:38 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| libssh | from 0.10.0 before 0.11.2 | 0.11.2 | |
| Red Hat | Red Hat Enterprise Linux 10 libssh | all versions (default) | 0:0.11.1-5.el10_1 |
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support libssh | all versions (default) | 0:0.11.1-4.el10_0.1 |
| Red Hat | Red Hat Enterprise Linux 9 libssh | all versions (default) | 0:0.10.4-17.el9_7 |
| Red Hat | Red Hat Enterprise Linux 9 libssh | all versions (default) | 0:0.10.4-17.el9_7 |
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions libssh | all versions (default) | 0:0.10.4-9.el9_2.2 |
| Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support libssh | all versions (default) | 0:0.10.4-13.el9_4.2 |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support libssh | all versions (default) | 0:0.10.4-15.el9_6.1 |
| Red Hat | Red Hat OpenShift Container Platform 4.13 openshift/ose-rhel-coreos-9 | all versions (default) | 413.92.202602240113-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.14 openshift/ose-rhel-coreos-9 | all versions (default) | 414.92.202601191325-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.15 openshift/ose-rhel-coreos-9 | all versions (default) | 415.92.202601271320-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.16 openshift/ose-rhel-coreos-9 | all versions (default) | 416.94.202601160124-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.17 openshift/ose-rhel-coreos-9 | all versions (default) | 417.94.202601120213-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.18 openshift/ose-rhel-coreos-9 | all versions (default) | 418.94.202601202224-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.19 openshift/ose-rhel-coreos-9 | all versions (default) | 4.19.9.6.202601260820-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.20 openshift/ose-rhel-coreos-9 | all versions (default) | 4.20.9.6.202601211057-0 |
| Red Hat | Red Hat Enterprise Linux 6 libssh2 | not stated | |
| Red Hat | Red Hat Enterprise Linux 7 libssh2 | not stated | |
| Red Hat | Red Hat Enterprise Linux 8 libssh | not stated | |
| Red Hat | Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8 | all versions (the record names no range) |
As the CVE record by redhat states it, last updated November 23, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| libssh | libssh | from 0.10.0 before 0.11.2 | application |
NVD analysis (status Modified), last modified November 23, 2026, 23:17 UTC.
How severe is CVE-2025-5987?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | redhat |
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-5987 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, January 22, 2026)
- EPSS
- 1.73% probability of exploitation activity in the next 30 days, percentile 78.3 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-393 Return of Wrong Status Code
Is there a workaround? (from the CVE record)
A workaround for this issue is to disable the [removed] cipher in applications using libssh when libssh is compiled with the OpenSSL backend, so the vulnerable ChaCha20-Poly1305 initialization path is not used. Alternatively, upgrade to a version of libssh containing the fix; upstream has released libssh 0.11.2 to correct this defect, and administrators are advised to upgrade or apply the upstream patch as soon as possible.
Where are the vendor advisories and references?
- RHSA-2025:23483 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:23484 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:0427 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:0428 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:0430 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:0431 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:0702 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:0978 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:0980 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:0985 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:0996 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:1539 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:1541 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:3415 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-5987 vdb-entry, x_refsource_REDHAT
- RHBZ#2376219 issue-tracking, x_refsource_REDHAT
- https://www.libssh.org/security/advisories/CVE-2025-5987.txt
When was it published, and where is the official record?
- Reserved
- June 10, 2025
- Published
- July 7, 2025, 14:24 UTC
- CVE record updated
- November 23, 2026, 22:38 UTC by redhat
- NVD
- Modified, last modified November 23, 2026, 23:17 UTC
- Last checked
- CVE list November 28, 2026, 17:54 UTC; NVD November 24, 2026, 00:08 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Red Hat Enterprise Linux 10?
- Dec 3, 2026CVE-2026-119584 Red Hat Directory Server 11: memory leak
- Dec 3, 2026CVE-2026-118472 Red Hat Directory Server 11: NULL pointer dereference (crash)
- Dec 3, 2026CVE-2026-137818 Red Hat Enterprise Linux 10: denial of service (uncontrolled resource consumption)
- Dec 3, 2026CVE-2026-118469 Red Hat Directory Server 11: integer underflow
- Dec 2, 2026CVE-2026-142107 Red Hat Enterprise Linux 10: out-of-bounds write (memory corruption)
- Dec 2, 2026CVE-2026-142105 Red Hat Enterprise Linux 10: denial of service (resources allocated without limits)
- Dec 2, 2026CVE-2026-115220 Red Hat Enterprise Linux 9: link following (a symlink lets an attacker reach other files)
- Dec 1, 2026CVE-2026-15268 Red Hat Enterprise Linux 10: missing authorization
Every CVE in Red Hat Enterprise Linux 10
Questions about CVE-2025-5987
Is CVE-2025-5987 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 1.73% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Red Hat Enterprise Linux 10 are affected by CVE-2025-5987?
libssh from 0.10.0 before 0.11.2 and Red Hat OpenShift Container Platform 4 all versions (the record names no range), per the CVE record by redhat. The tables above give every range the sources list.
Which version fixes CVE-2025-5987?
0.11.2, 0:0.11.1-5.el10_1, 0:0.11.1-4.el10_0.1, 0:0.10.4-17.el9_7, 0:0.10.4-9.el9_2.2 and 0:0.10.4-13.el9_4.2, per the CVE record by redhat. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-5987?
High (8.1, CVSS 3.1, from redhat). The severity table above shows each score with its source.
Where is the official record of CVE-2025-5987?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.