6.5

CVE-2025-5351: libssh Double Free

CVSS: 6.5v3.1MediumModified
AliasesUBUNTU-CVE-2025-5351DEBIAN-CVE-2025-5351
Published 04-07-2025Last modified 01-09-2026

Vulnerability summary

CVE-2025-5351 is a medium (CVSS 6.5) Double Free vulnerability in libssh. EPSS estimates a 0.61% chance of exploitation in the next 30 days, higher than 48.4% of scored vulnerabilities.

Overall risk
26/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.61%
0%100%
Low · +0.09 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 6 · Related 4

Timeline

  1. 04-07-2025
    PublishedVulnerability first disclosed.
  2. 01-09-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.61%

Chance of exploitation in the next 30 days

Percentile

48%

Versus all other CVEs

30-day change

+0.09 pp

From 0.53% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.61%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Redhat2 products
Debian1 product
  • libssh< 0.10.6-0+deb12u2 | < 0.11.2-1
Libssh1 product
Ubuntu1 product
  • libssh< 0.10.6-2ubuntu0.1

4 vendors · 5 products

References

9 links