CVE-2025-5351
Medium 6.5No known exploitationFix availableLibssh: double free vulnerability in libssh key export functions
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 51% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
Weakness: CWE-415
Patching and mitigation
- Patch status
- Fix available (source: CVE record (redhat))
- Fix documented (source date)
- Mitigation
- 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. Source (opens in a new tab)
- Vendor guidance
- access.redhat.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 8 | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 4 | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 4 | Not documented | Not documented | CVE Program |
| libssh | libssh | from 0.10.0 before 0.11.2 | 0.11.2 | CVE Program |
| libssh | libssh | from 0.10.0 before 0.11.2 | 0.11.2 | NIST NVD |
| redhat | enterprise_linux | 10.0 | Not documented | NIST NVD |
| redhat | enterprise_linux | 6.0 | Not documented | NIST NVD |
| redhat | enterprise_linux | 7.0 | Not documented | NIST NVD |
| redhat | enterprise_linux | 8.0 | Not documented | NIST NVD |
| redhat | enterprise_linux | 9.0 | Not documented | NIST NVD |
| redhat | openshift_container_platform | 4.0 | Not documented | NIST NVD |
| Red Hat | Red Hat Enterprise Linux 6 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 7 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9 (unaffected) | 0:0.10.4-18.el9 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9 (unaffected) | 0:0.10.4-18.el9 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by redhat
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (redhat)
Vendor guidance and references
- RHSA-2026:18683 (opens in a new tab)vendor-advisory, x_refsource_redhat
- https://access.redhat.com/security/cve/CVE-2025-5351 (opens in a new tab)third party advisory, vdb-entry, x_refsource_redhat
- RHBZ#2369367 (opens in a new tab)issue tracking, issue-tracking, third party advisory, x_refsource_redhat