CVSS 3.1
8.1 highCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HHigh (8.1) in libssh libssh. EPSS 2.3% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HExplain CVE-2025-5987 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-5987?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-5987?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-5987 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| libssh | from 0.10.0 before 0.11.2 |
| Product | Fixed in |
|---|---|
| Red Hat Enterprise Linux 10 | 0:0.11.1-5.el10_1 |
| Red Hat Enterprise Linux 10.0 Extended Update Support | 0:0.11.1-4.el10_0.1 |
| Red Hat Enterprise Linux 9 | 0:0.10.4-17.el9_7 |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | 0:0.10.4-9.el9_2.2 |
| Red Hat Enterprise Linux 9.4 Extended Update Support | 0:0.10.4-13.el9_4.2 |
| Red Hat Enterprise Linux 9.6 Extended Update Support | 0:0.10.4-15.el9_6.1 |
| Red Hat OpenShift Container Platform 4.13 | 413.92.202602240113-0 |
| Red Hat OpenShift Container Platform 4.14 | 414.92.202601191325-0 |
| Red Hat OpenShift Container Platform 4.15 | 415.92.202601271320-0 |
| Red Hat OpenShift Container Platform 4.16 | 416.94.202601160124-0 |
| Red Hat OpenShift Container Platform 4.17 | 417.94.202601120213-0 |
| Red Hat OpenShift Container Platform 4.18 | 418.94.202601202224-0 |
| Red Hat OpenShift Container Platform 4.19 | 4.19.9.6.202601260820-0 |
| Red Hat OpenShift Container Platform 4.20 | 4.20.9.6.202601211057-0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | libssh | 0.10.6-0+deb12u2 | DEBIAN-CVE-2025-5987 |
| Debian | 13, 14 | libssh | 0.11.2-1 | DEBIAN-CVE-2025-5987 |
| Ubuntu | 22.04:LTS | libssh | 0.9.6-2ubuntu0.22.04.4 | USN-7619-1 |
| Ubuntu | 24.04:LTS | libssh | 0.10.6-2ubuntu0.1 | UBUNTU-CVE-2025-5987 USN-7619-1 |
| Red Hat | enterprise_linux:9::appstream | libssh-devel, libssh-debuginfo, libssh-debugsource | 0:0.10.4-17.el9_7 | RHSA-2025:23483 |
| Red Hat | enterprise_linux:9::baseos | libssh, libssh-config, libssh-debuginfo and 1 more | 0:0.10.4-17.el9_7 | RHSA-2025:23483 |
| Red Hat | enterprise_linux:10.1 | libssh, libssh-devel, libssh-config and 2 more | 0:0.11.1-5.el10_1 | RHSA-2025:23484 |
| Red Hat | enterprise_linux_eus:10.0 | libssh | 0:0.11.1-4.el10_0.1 | RHSA-2026:0427 |
| Red Hat | rhel_e4s:9.2::baseos | libssh | 0:0.10.4-9.el9_2.2 | RHSA-2026:0430 |
| Red Hat | rhel_eus:9.4::baseos | libssh | 0:0.10.4-13.el9_4.2 | RHSA-2026:0431 |
| Red Hat | rhel_eus:9.6::baseos | libssh | 0:0.10.4-15.el9_6.1 | RHSA-2026:0428 |
| SUSE | Linux Micro 6.0 | libssh | 0.10.6-2.1 | SUSE-SU-2025:20557-1 |
| SUSE | Linux Micro 6.1 | libssh | 0.10.6-slfo.1.1_2.1 | SUSE-SU-2025:20596-1 |
| openSUSE | Tumbleweed | libssh | 0.11.2-1.1 | openSUSE-SU-2025:15243-1 |
| AlmaLinux | 9 | libssh, libssh-devel, libssh-config | 0.10.4-17.el9_7 | ALSA-2025:23483 |
| AlmaLinux | 10 | libssh-config | 0.11.1-5.el10_1 | ALSA-2025:23484 |
| Rocky Linux | 9 | libssh | 0:0.10.4-17.el9_7 | RLSA-2025:23483 |
| Rocky Linux | 10 | libssh | 0:0.11.1-5.el10_1 | RLSA-2025:23484 |
| Alpine | v3.22, v3.23, v3.24 | libssh | 0.11.2-r0 | ALPINE-CVE-2025-5987 |
| Azure Linux | 2 | libssh | 0.10.6-2 | AZL-64794 |
| Azure Linux | 3 | libssh | 0.10.6-2 | AZL-64797 |
| Alpaquita | 23, 25, stream | libssh | 0.11.2-r0 | BELL-CVE-2025-5987 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.
Red Hat rates this Moderate.
Red Hat Product Security Team has rated this vulnerability as having a Moderate security impact. This is due to the high complexity in exploiting this flaw. For a successful attack to take place an attacker needs to manage to exhaust the heap space to for the OpenSSL library to return the error code which wrongly match the SSH_OK return code.
A workaround for this issue is to disable the chacha20-poly1305@openssh.com 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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | libssh-0:0.11.1-5.el10_1 | Fixed 2025-12-17 | RHSA-2025:23484 |
| Red Hat Enterprise Linux 10.0 Extended Update Support | libssh-0:0.11.1-4.el10_0.1 | Fixed 2026-01-12 | RHSA-2026:0427 |
| Red Hat Enterprise Linux 9 | libssh-0:0.10.4-17.el9_7 | Fixed 2025-12-18 | RHSA-2025:23483 |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | libssh-0:0.10.4-9.el9_2.2 | Fixed 2026-01-12 | RHSA-2026:0430 |
| Red Hat Enterprise Linux 9.4 Extended Update Support | libssh-0:0.10.4-13.el9_4.2 | Fixed 2026-01-12 | RHSA-2026:0431 |
| Red Hat Enterprise Linux 9.6 Extended Update Support | libssh-0:0.10.4-15.el9_6.1 | Fixed 2026-01-12 | RHSA-2026:0428 |
| Red Hat OpenShift Container Platform 4.13 | openshift/ose-rhel-coreos-9:413.92.202602240113-0 | Fixed 2026-03-05 | RHSA-2026:3415 |
| Red Hat OpenShift Container Platform 4.14 | openshift/ose-rhel-coreos-9:414.92.202601191325-0 | Fixed 2026-01-30 | RHSA-2026:0996 |
| Red Hat OpenShift Container Platform 4.15 | openshift/ose-rhel-coreos-9:415.92.202601271320-0 | Fixed 2026-02-05 | RHSA-2026:1541 |
| Red Hat OpenShift Container Platform 4.16 | openshift/ose-rhel-coreos-9:416.94.202601160124-0 | Fixed 2026-01-30 | RHSA-2026:0985 |
| Red Hat OpenShift Container Platform 4.17 | openshift/ose-rhel-coreos-9:417.94.202601120213-0 | Fixed 2026-01-22 | RHSA-2026:0702 |
| Red Hat OpenShift Container Platform 4.18 | openshift/ose-rhel-coreos-9:418.94.202601202224-0 | Fixed 2026-02-03 | RHSA-2026:0980 |
| Red Hat OpenShift Container Platform 4.19 | openshift/ose-rhel-coreos-9:4.19.9.6.202601260820-0 | Fixed 2026-02-04 | RHSA-2026:1539 |
| Red Hat OpenShift Container Platform 4.20 | openshift/ose-rhel-coreos-9:4.20.9.6.202601211057-0 | Fixed 2026-01-27 | RHSA-2026:0978 |
| Red Hat Enterprise Linux 6 | libssh2 | Out of support scope | |
| Red Hat Enterprise Linux 7 | libssh2 | Out of support scope | |
| Red Hat Enterprise Linux 8 | libssh | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-5987.