CVE-2025-5351

MEDIUM

libssh 0.10.0-0.11.2 - Double Free in Key Export Functionality

Title source: llm
STIX 2.1

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.

References (3)

Core 3
Core References
Vendor Advisory vendor-advisory x_refsource_redhat
RHSA-2026:18683
https://access.redhat.com/errata/RHSA-2026:18683
Third Party Advisory vdb-entry x_refsource_redhat
https://access.redhat.com/security/cve/CVE-2025-5351
Issue Tracking, Third Party Advisory issue-tracking x_refsource_redhat
https://bugzilla.redhat.com/show_bug.cgi?id=2369367

Scores

CVSS v3 6.5
EPSS 0.0049
EPSS Percentile 38.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-415
Status published
Products (13)
libssh/libssh 0.10.0 - 0.11.2 (2 CPE variants)
Red Hat/Red Hat Enterprise Linux 10
Red Hat/Red Hat Enterprise Linux 6
Red Hat/Red Hat Enterprise Linux 7
Red Hat/Red Hat Enterprise Linux 8
Red Hat/Red Hat Enterprise Linux 9 0:0.10.4-18.el9
Red Hat/Red Hat OpenShift Container Platform 4
redhat/enterprise_linux 6.0
redhat/enterprise_linux 7.0
redhat/enterprise_linux 8.0
... and 3 more
Published Jul 04, 2025
Tracked Since Feb 18, 2026