CVSS 3.1
6.5 mediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HMedium (6.5). EPSS 0.6% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExplain CVE-2025-5351 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-5351?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-5351?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-5351 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 9 | 0:0.10.4-18.el9 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | libssh | 0.10.6-0+deb12u2 | DEBIAN-CVE-2025-5351 |
| Debian | 13, 14 | libssh | 0.11.2-1 | DEBIAN-CVE-2025-5351 |
| 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-5351 USN-7619-1 |
| Red Hat | enterprise_linux:9::appstream | libssh-devel, libssh-debuginfo, libssh-debugsource | 0:0.10.4-18.el9 | RHSA-2026:18683 |
| Red Hat | enterprise_linux:9::baseos | libssh, libssh-config, libssh-debuginfo and 1 more | 0:0.10.4-18.el9 | RHSA-2026:18683 |
| 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-18.el9 | ALSA-2026:18683 |
| Rocky Linux | 9 | libssh | 0:0.10.4-18.el9 | RLSA-2026:18683 |
| Alpine | v3.22, v3.23, v3.24 | libssh | 0.11.2-r0 | ALPINE-CVE-2025-5351 |
| Azure Linux | 2 | libssh | 0.10.6-2 | AZL-64653 |
| Azure Linux | 3 | libssh | 0.10.6-2 | AZL-64659 |
| Alpaquita | 23, 25, stream | libssh | 0.11.2-r0 | BELL-CVE-2025-5351 |
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.
The Red Hat Product Security team has rated the severity of this issue as Moderate. The vulnerability arises from a double free condition that is only exploitable under rare and constrained scenarios such as low memory environments. Furthermore, exploitation requires an authenticated user with access to key export functionality, limiting the scope and impact. Despite the restricted preconditions, the flaw still presents a stability concern for services utilizing libssh in sensitive environments.
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability. Administrators should apply vendor-supplied patches as soon as they become available.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 9 | libssh-0:0.10.4-18.el9 | Fixed 2026-05-19 | RHSA-2026:18683 |
| Red Hat Enterprise Linux 10 | libssh | Fix deferred | |
| 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 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Fix deferred | |
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-9 | Fix deferred |
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-5351.