CVE-2025-5351

MEDIUM
Published Jul 4, 2025 Modified Jan 8, 2026 CWE-415

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.

Is your site exposed to CVE-2025-5351?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

6.5
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness Type (CWE)

CWE-415 CWE-415

Affected Products

Vendor Product
libssh libssh
redhat openshift_container_platform
redhat enterprise_linux
redhat enterprise_linux
redhat enterprise_linux
redhat enterprise_linux
redhat enterprise_linux

References

Frequently Asked Questions

What is 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. It has a CVSS v3.1 base score of 6.5 (MEDIUM).
How severe is CVE-2025-5351? +
CVE-2025-5351 has a CVSS v3.1 score of 6.5 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2025-5351? +
CVE-2025-5351 affects products from libssh, redhat, specifically: enterprise_linux, libssh, openshift_container_platform. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-5351? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-5351 — free, no signup required.