libssh up to 0.11.1 Key Export double free

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.1$0-$5k0.00

Summaryinfo

A vulnerability classified as problematic was found in libssh up to 0.11.1. This impacts an unknown function of the component Key Export Handler. Executing a manipulation can lead to double free. This vulnerability is handled as CVE-2025-5351. There is not any exploit available. Upgrading the affected component is advised.

Detailsinfo

A vulnerability has been found in libssh up to 0.11.1 and classified as problematic. This vulnerability affects an unknown function of the component Key Export Handler. The manipulation with an unknown input leads to a double free vulnerability. The CWE definition for the vulnerability is CWE-415. The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations. The impact remains unknown. CVE summarizes:

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.

The advisory is shared for download at libssh.org. This vulnerability was named CVE-2025-5351. There are neither technical details nor an exploit publicly available.

The vulnerability scanner Nessus provides a plugin with the ID 241506 (Ubuntu 22.04 LTS : libssh vulnerabilities (USN-7619-1)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 0.11.2 eliminates this vulnerability.

The vulnerability is also documented in the databases at Tenable (241506), EUVD (EUVD-2025-19935) and CERT Bund (WID-SEC-2025-1423). Once again VulDB remains the best source for vulnerability data.

Affected

  • Red Hat Enterprise Linux
  • Fedora Linux
  • Ubuntu Linux
  • SUSE Linux
  • Oracle Linux
  • NetApp AFF
  • NetApp ActiveIQ Unified Manager
  • RESF Rocky Linux
  • Dell Avamar
  • NetApp FAS
  • Open Source libssh
  • IBM App Connect Enterprise
  • Dell NetWorker
  • Dell Secure Connect Gateway
  • Red Hat OpenShift
  • Meinberg LANTIME
  • IBM Security Verify Access
  • IBM QRadar SIEM

Productinfo

Name

Version

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.2
VulDB Meta Temp Score: 6.1

VulDB Base Score: 5.5
VulDB Temp Score: 5.3
VulDB Vector: 🔒
VulDB Reliability: 🔍

NVD Base Score: 6.5
NVD Vector: 🔒

CNA Base Score: 6.5
CNA Vector: 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Double free
CWE: CWE-415 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Yes

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 241506
Nessus Name: Ubuntu 22.04 LTS : libssh vulnerabilities (USN-7619-1)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: libssh 0.11.2

Timelineinfo

06/28/2025 Advisory disclosed
06/28/2025 +0 days VulDB entry created
01/25/2026 +211 days VulDB entry last update

Sourcesinfo

Advisory: libssh.org
Status: Confirmed

CVE: CVE-2025-5351 (🔒)
GCVE (CVE): GCVE-0-2025-5351
GCVE (VulDB): GCVE-100-314356
EUVD: 🔒
CERT Bund: WID-SEC-2025-1423 - libssh: Mehrere Schwachstellen

Entryinfo

Created: 06/28/2025 13:27
Updated: 01/25/2026 17:01
Changes: 06/28/2025 13:27 (50), 07/04/2025 11:22 (1), 07/04/2025 11:35 (12), 07/04/2025 15:18 (1), 07/08/2025 12:55 (2), 10/18/2025 19:46 (7), 10/20/2025 10:45 (1), 11/03/2025 19:33 (1), 11/28/2025 11:21 (1), 11/28/2025 16:26 (1), 12/18/2025 17:55 (1), 01/08/2026 06:12 (16), 01/25/2026 17:01 (1)
Complete: 🔍
Cache ID: 216::103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!