6.5

CVE-2025-5351: Libssh: double free vulnerability in libssh key export functions

Modified
AliasesUBUNTU-CVE-2025-5351DEBIAN-CVE-2025-5351ALPINE-CVE-2025-5351
Published 04-07-2025Last modified 24-11-2026

Vulnerability summary

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

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.81%
0%100%
Low · +0.19 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 6 · Related 4

Timeline

  1. 04-07-2025
    PublishedVulnerability first disclosed.
  2. 24-11-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

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.81%

Chance of exploitation in the next 30 days

Percentile

58%

Versus all other CVEs

30-day change

Increase +0.19 pp

From 0.61% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

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

5 vendors · 6 products

References

10 links