CVE & CISA-KEV Catalog

CVE-2025-5351

MEDIUM
6.5
CVSS v3
NVD

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.

How to fix

Remediation Available
libsshDebian
Fixed in:0.10.6-0+deb12u2CVE-2025-5351
Fixed in:0.11.2-1CVE-2025-5351
Fixed in:0.11.2-1CVE-2025-5351
libsshRocky
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
libsshRed Hat / RHEL
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
libssh-configRocky
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
libssh-configRed Hat / RHEL
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
libssh-debuginfoRocky
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
libssh-debuginfoRed Hat / RHEL
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
libssh-debugsourceRed Hat / RHEL
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
libssh-debugsourceRocky
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
libssh-develRed Hat / RHEL
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
libssh-develRocky
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
Fixed in:0:0.10.4-18.el9RHSA-2026:18683
libsshUbuntu
Fixed in:0.9.6-2ubuntu0.22.04.4USN-7619-1
Fixed in:0.10.6-2ubuntu0.1USN-7619-1
libssh-4Ubuntu
Fixed in:0.9.6-2ubuntu0.22.04.4USN-7619-1
Fixed in:0.10.6-2ubuntu0.1USN-7619-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.49%probability of exploitation in 30 days
39thpercentile

Low risk: more likely to be exploited than 39% of all known CVEs.

References

Other references1

Related Vulnerabilities

Other CWE-415 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-25136Medium6.590%-Fix
CVE-2018-0101Critical10.087%-Fix
CVE-2003-0545Critical9.885%-Fix
CVE-2019-3829Medium5.359%-Fix
CVE-2026-33824Critical9.856%-Fix
CVE-2021-3407Medium5.550%-Fix
Embed a live status badge for CVE-2025-5351
CVE-2025-5351 severity badge

Markdown

[![CVE-2025-5351](https://tridentstack.com/cve/badge/CVE-2025-5351.svg)](https://tridentstack.com/cve/CVE-2025-5351)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-5351"><img src="https://tridentstack.com/cve/badge/CVE-2025-5351.svg" alt="CVE-2025-5351"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-30.