CVE-2025-5351
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.
Scoring
- Severity
- MEDIUM
- CVSS base score
- 6.5
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS probability
- 0.53%
- CWE
- CWE-415
- Published
- 2025-07-04
- Last modified
- 2026-09-01
Affected products
- libssh libssh
- Red Hat Red Hat Enterprise Linux 9
Weakness type
Related vulnerabilities
- CVE-2021-21797 — An exploitable double-free vulnerability exists in the JavaScript implementation of Nitro Pro PDF. A specially crafted d
- CVE-2026-23918 — Apache HTTP Server: http2: double free and possible RCE on early reset
- CVE-2021-3492 — Ubuntu linux kernel shiftfs file system double free vulnerability
- CVE-2021-22600 — Double Free in net/packet/af_packet.c leading to priviledge escalation
- CVE-2020-1647 — Junos OS: SRX Series: Double free vulnerability can lead to DoS or remote code execution due to the processing of a specific HTTP message when ICAP redirect service is enabled
- CVE-2026-87585 — Double free in PDFium in Google Chrome on on Windows prior to 153.0.8010.36 allowed a remote attacker to potentially exe
- CVE-2024-27099 — Azure IoT Platform Device SDK Double Free Vulnerability
- CVE-2024-23809 — A double-free vulnerability exists in the BrainVision ASCII Header Parsing functionality of The Biosig Project libbiosig