Libssh: invalid return code for chacha20 poly1305 with openssl backend
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 16 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | libssh | 0.10.0 to before 0.11.2 | 0.11.2 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 10 | — | 0.11.1-5.el10_1 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support | — | 0.11.1-4.el10_0.1 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9 | — | 0.10.4-17.el9_7 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9 | — | 0.10.4-17.el9_7 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | — | 0.10.4-9.el9_2.2 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support | — | 0.10.4-13.el9_4.2 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | — | 0.10.4-15.el9_6.1 | Patch available | CNA |
| Red Hat | Red Hat OpenShift Container Platform 4.13 | — | 413.92.202602240113-0 | Patch available | CNA |
| Red Hat | Red Hat OpenShift Container Platform 4.14 | — | 414.92.202601191325-0 | Patch available | CNA |
| Red Hat | Red Hat OpenShift Container Platform 4.15 | — | 415.92.202601271320-0 | Patch available | CNA |
| Red Hat | Red Hat OpenShift Container Platform 4.16 | — | 416.94.202601160124-0 | Patch available | CNA |
| Red Hat | Red Hat OpenShift Container Platform 4.17 | — | 417.94.202601120213-0 | Patch available | CNA |
| Red Hat | Red Hat OpenShift Container Platform 4.18 | — | 418.94.202601202224-0 | Patch available | CNA |
| Red Hat | Red Hat OpenShift Container Platform 4.19 | — | 4.19.9.6.202601260820-0 | Patch available | CNA |
| Red Hat | Red Hat OpenShift Container Platform 4.20 | — | 4.20.9.6.202601211057-0 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 6 | — | — | No fix listed | CNA |
| Red Hat | Red Hat Enterprise Linux 7 | — | — | No fix listed | CNA |
| Red Hat | Red Hat Enterprise Linux 8 | — | — | Not affected | CNA |
| Red Hat | Red Hat OpenShift Container Platform 4 | — | — | No fix listed | CNA |
- libssh Vendor— Affected 0.10.0 to before 0.11.2 Fixed in 0.11.2 Patch available CNA
- Red Hat Enterprise Linux 10 VendorRed Hat Affected — Fixed in 0.11.1-5.el10_1 Patch available CNA
- Red Hat Enterprise Linux 10.0 Extended Update Support VendorRed Hat Affected — Fixed in 0.11.1-4.el10_0.1 Patch available CNA
- Red Hat Enterprise Linux 9 VendorRed Hat Affected — Fixed in 0.10.4-17.el9_7 Patch available CNA
- Red Hat Enterprise Linux 9 VendorRed Hat Affected — Fixed in 0.10.4-17.el9_7 Patch available CNA
- Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions VendorRed Hat Affected — Fixed in 0.10.4-9.el9_2.2 Patch available CNA
- Red Hat Enterprise Linux 9.4 Extended Update Support VendorRed Hat Affected — Fixed in 0.10.4-13.el9_4.2 Patch available CNA
- Red Hat Enterprise Linux 9.6 Extended Update Support VendorRed Hat Affected — Fixed in 0.10.4-15.el9_6.1 Patch available CNA
- Red Hat OpenShift Container Platform 4.13 VendorRed Hat Affected — Fixed in 413.92.202602240113-0 Patch available CNA
- Red Hat OpenShift Container Platform 4.14 VendorRed Hat Affected — Fixed in 414.92.202601191325-0 Patch available CNA
- Red Hat OpenShift Container Platform 4.15 VendorRed Hat Affected — Fixed in 415.92.202601271320-0 Patch available CNA
- Red Hat OpenShift Container Platform 4.16 VendorRed Hat Affected — Fixed in 416.94.202601160124-0 Patch available CNA
- Red Hat OpenShift Container Platform 4.17 VendorRed Hat Affected — Fixed in 417.94.202601120213-0 Patch available CNA
- Red Hat OpenShift Container Platform 4.18 VendorRed Hat Affected — Fixed in 418.94.202601202224-0 Patch available CNA
- Red Hat OpenShift Container Platform 4.19 VendorRed Hat Affected — Fixed in 4.19.9.6.202601260820-0 Patch available CNA
- Red Hat OpenShift Container Platform 4.20 VendorRed Hat Affected — Fixed in 4.20.9.6.202601211057-0 Patch available CNA
- Red Hat Enterprise Linux 6 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat Enterprise Linux 7 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat Enterprise Linux 8 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat OpenShift Container Platform 4 VendorRed Hat Affected — Fixed in — No fix listed CNA
Remediation
- Fix · CNA libssh Fixed in 0.11.2
Red Hat 14 advisories
- RHSA-2026:3415 Released 2026-03-05 · Red Hat rating ImportantOpenShift Container Platform 4.13.64 bug fix and security update
- Red Hat OpenShift Container Platform 4.13 rhcos-x86_64-413.92.202602240113-0
- RHSA-2026:1541 Released 2026-02-05 · Red Hat rating ImportantOpenShift Container Platform 4.15.61 bug fix and security update
- Red Hat OpenShift Container Platform 4.15 rhcos-aarch64-415.92.202601271320-0, rhcos-ppc64le-415.92.202601271320-0, rhcos-s390x-415.92.202601271320-0 +1
- RHSA-2026:1539 Released 2026-02-04 · Red Hat rating ModerateOpenShift Container Platform 4.19.23 bug fix and security update
- Red Hat OpenShift Container Platform 4.19 rhcos-aarch64-4.19.9.6.202601260820-0, rhcos-aarch64-9.6.20260123-0, rhcos-ppc64le-4.19.9.6.202601260820-0 +5
Show 11 more Red Hat advisories
- RHSA-2026:0980 Released 2026-02-03 · Red Hat rating ModerateOpenShift Container Platform 4.18.32 bug fix and security update
- Red Hat OpenShift Container Platform 4.18 rhcos-aarch64-418.94.202601202224-0, rhcos-ppc64le-418.94.202601202224-0, rhcos-s390x-418.94.202601202224-0 +1
- RHSA-2026:0996 Released 2026-01-30 · Red Hat rating ImportantOpenShift Container Platform 4.14.61 bug fix and security update
- Red Hat OpenShift Container Platform 4.14 rhcos-aarch64-414.92.202601191325-0, rhcos-ppc64le-414.92.202601191325-0, rhcos-s390x-414.92.202601191325-0 +1
- RHSA-2026:0985 Released 2026-01-30 · Red Hat rating ModerateOpenShift Container Platform 4.16.56 bug fix and security update
- Red Hat OpenShift Container Platform 4.16 rhcos-aarch64-416.94.202601160124-0, rhcos-ppc64le-416.94.202601160124-0, rhcos-s390x-416.94.202601160124-0 +1
- RHSA-2026:0978 Released 2026-01-27 · Red Hat rating ModerateOpenShift Container Platform 4.20.12 bug fix and security update
- Red Hat OpenShift Container Platform 4.20 rhcos-aarch64-4.20.9.6.202601211057-0, rhcos-ppc64le-4.20.9.6.202601211057-0, rhcos-s390x-4.20.9.6.202601211057-0 +1
- RHSA-2026:0702 Released 2026-01-22 · Red Hat rating ImportantOpenShift Container Platform 4.17.47 bug fix and security update
- Red Hat OpenShift Container Platform 4.17 rhcos-aarch64-417.94.202601120213-0, rhcos-ppc64le-417.94.202601120213-0, rhcos-s390x-417.94.202601120213-0 +1
- RHSA-2026:0431 Released 2026-01-12 · Red Hat rating Moderatelibssh security update
- Red Hat Enterprise Linux BaseOS EUS (v.9.4) libssh-0.10.4-13.el9_4.2
- RHSA-2026:0428 Released 2026-01-12 · Red Hat rating Moderatelibssh security update
- Red Hat Enterprise Linux BaseOS EUS (v.9.6) libssh-0.10.4-15.el9_6.1
- RHSA-2026:0427 Released 2026-01-12 · Red Hat rating Moderatelibssh security update
- Red Hat Enterprise Linux BaseOS EUS (v. 10.0) libssh-0.11.1-4.el10_0.1
- RHSA-2026:0430 Released 2026-01-12 · Red Hat rating Moderatelibssh security update
- Red Hat Enterprise Linux BaseOS E4S (v.9.2) libssh-0.10.4-9.el9_2.2
- RHSA-2025:23483 Released 2025-12-18 · Red Hat rating Moderatelibssh security update
- Red Hat Enterprise Linux AppStream (v. 9) libssh-devel-0.10.4-17.el9_7
- Red Hat Enterprise Linux BaseOS (v. 9) libssh-0.10.4-17.el9_7, libssh-config-0.10.4-17.el9_7
- RHSA-2025:23484 Released 2025-12-17 · Red Hat rating Moderatelibssh security update
- Red Hat Enterprise Linux AppStream (v. 10) libssh-devel-0.11.1-5.el10_1
- Red Hat Enterprise Linux BaseOS (v. 10) libssh-0.11.1-5.el10_1, libssh-config-0.11.1-5.el10_1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2025:23484 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2025:23483 |
| Red Hat Enterprise Linux BaseOS (v. 10) | Fixed | RHSA-2025:23484 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2025:23483 |
| Red Hat Enterprise Linux BaseOS E4S (v.9.2) | Fixed | RHSA-2026:0430 |
| Red Hat Enterprise Linux BaseOS EUS (v. 10.0) | Fixed | RHSA-2026:0427 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.4) | Fixed | RHSA-2026:0431 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.6) | Fixed | RHSA-2026:0428 |
| Red Hat OpenShift Container Platform 4.13 | Fixed | RHSA-2026:3415 |
| Red Hat OpenShift Container Platform 4.14 | Fixed | RHSA-2026:0996 |
| Red Hat OpenShift Container Platform 4.15 | Fixed | RHSA-2026:1541 |
| Red Hat OpenShift Container Platform 4.16 | Fixed | RHSA-2026:0985 |
| Red Hat OpenShift Container Platform 4.17 | Fixed | RHSA-2026:0702 |
| Red Hat OpenShift Container Platform 4.18 | Fixed | RHSA-2026:0980 |
| Red Hat OpenShift Container Platform 4.19 | Fixed | RHSA-2026:1539 |
| Red Hat OpenShift Container Platform 4.20 | Fixed | RHSA-2026:0978 |
Not affected: 9 products
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux AppStream E4S (v.9.2)
- Red Hat Enterprise Linux AppStream EUS (v. 10.0)
- Red Hat Enterprise Linux AppStream EUS (v.9.4)
- Red Hat Enterprise Linux AppStream EUS (v.9.6)
- Red Hat Enterprise Linux BaseOS E4S (v.9.2)
- Red Hat Enterprise Linux BaseOS EUS (v. 10.0)
- Red Hat Enterprise Linux BaseOS EUS (v.9.4)
- Red Hat Enterprise Linux BaseOS EUS (v.9.6)
Timeline
- 2026-10-02 Threatist record created from CVE-2025-5987
- 2026-10-03 Alias added: GHSA-3pvj-q7qj-89fg
- 2026-10-16 Fix available: openshift/[email protected], openshift/[email protected], openshift/[email protected] +5 · CNA
References
Advisory 16
More Red Hat vulnerabilities
- TI-2019-15875 Protection mechanism failure in Jenkins Pipeline: Groovy Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-15874 Protection mechanism failure in Jenkins Script Security Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2019-05363 Code injection in Elastic Kibana KEVCVSS 3.1CRITICAL 10.0
- TI-2019-03949 Out-of-bounds write in ESXi and Horizon DaaS KEVCVSS 3.1CRITICAL 9.8
- TI-2018-16080 A code execution vulnerability exists in the Stapler web framework used by Jenkins 2.153… KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2025-5987 · CVE Program
- CVE-2025-5987 · NVD
- FIRST EPSS
- GHSA-3pvj-q7qj-89fg · GitHub Advisory Database · CC BY 4.0
- CVE-2025-5987 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences