CVE-2025-5987: Red Hat Enterprise Linux 10 · Return of Wrong Status Code
Affects Red Hat Enterprise Linux 10Source CVE Database V5
Not known to be exploited · CVSS 8.1 High.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 1.7% chance of exploitation in 30 days – higher than 77% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 7 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Red HatRed Hat Enterprise Linux 10 | Affected– | Fixed in– |
| Red HatRed Hat Enterprise Linux 10.0 Extended Update Support | Affected– | Fixed in– |
| Red HatRed Hat Enterprise Linux 9 | Affected– | Fixed in– |
| Red HatRed Hat Enterprise Linux 9.2 Update Services for SAP Solutions | Affected– | Fixed in– |
| Red HatRed Hat Enterprise Linux 9.4 Extended Update Support | Affected– | Fixed in– |
| Red HatRed Hat Enterprise Linux 9.6 Extended Update Support | Affected– | Fixed in– |
| Red HatRed Hat OpenShift Container Platform 4.13 | Affected– | Fixed in– |
| Red HatRed Hat OpenShift Container Platform 4.14 | Affected– | Fixed in– |
| Red HatRed Hat OpenShift Container Platform 4.15 | Affected– | Fixed in– |
| Red HatRed Hat OpenShift Container Platform 4.16 | Affected– | Fixed in– |
| Red HatRed Hat OpenShift Container Platform 4.17 | Affected– | Fixed in– |
| Red HatRed Hat OpenShift Container Platform 4.18 | Affected– | Fixed in– |
| Red HatRed Hat OpenShift Container Platform 4.19 | Affected– | Fixed in– |
| Red HatRed Hat OpenShift Container Platform 4.20 | Affected– | Fixed in– |
| Red HatRed Hat Enterprise Linux 6 | Affected– | Fixed in– |
| Red HatRed Hat Enterprise Linux 7 | Affected– | Fixed in– |
| Red HatRed Hat Enterprise Linux 8 | Affected– | Fixed in– |
| Red HatRed Hat OpenShift Container Platform 4 | Affected– | Fixed in– |
AI-suggested
Red Hat has released official security updates that fix this vulnerability in libssh for Red Hat Enterprise Linux 9 and 10. Users should apply the updated libssh packages as described in Red Hat advisories RHSA-2025:23483 and RHSA-2025:23484. The advisories provide detailed instructions and updated package versions (e.g., libssh-0.10.4-17.el9_7 for RHEL 9 and libssh-0.11.1-5.el10_1 for RHEL 10). Applying these updates mitigates the vulnerability. Patch status is confirmed by the vendor advisories.
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.
References
- access.redhat.com/errata/RHSA-2025:23483 (opens in a new tab)
- access.redhat.com/errata/RHSA-2025:23484 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:0427 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:0428 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:0430 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:0431 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:0702 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:0978 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:0980 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:0985 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:0996 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:1539 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:1541 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:3415 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2025-5987 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2376219 (opens in a new tab)
- libssh.org/security/advisories/CVE-2025-5987.txt (opens in a new tab)