BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-5351 in Libssh and 2 more products

Medium 6.5

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 lat...

Affects 3 products from 2 vendors. Facts below cite their sources.

CVSS 3.16.5
EPSS1.2%
EPSS percentile69th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Libssh Libssh ≥ 0.10.0, < 0.11.2
Redhat Enterprise Linux 6.0 7.0 8.0 9.0 10.0
Redhat Openshift Container Platform 4.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-5351
BreachSpider IDBS-2025-GLOBAL-038259-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published2025-07-04
Last modified2026-11-24
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-415: CWE-415

Analysis AI-written, not human-reviewed

A flaw in the key export functionality of libssh can lead to heap corruption or application instability due to a potential double free issue.

The vulnerability arises from improper memory management in the internal function responsible for converting cryptographic keys into serialized formats. If an error occurs during this process, a memory structure is freed but not cleared, which can lead to a double free if another error happens subsequently.

Questions

What is CVE-2025-5351?

A flaw in the key export functionality of libssh can lead to heap corruption or application instability due to a potential double free issue.

What is the CVSS score for CVE-2025-5351?

CVE-2025-5351 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. EPSS: 1.2%.

Is CVE-2025-5351 actively exploited?

No confirmed active exploitation of CVE-2025-5351 as of 2026-11-25.

How do I remediate CVE-2025-5351?

Priority: MEDIUM. Advisory: https://access.redhat.com/errata/RHSA-2026:18683

What systems are affected by CVE-2025-5351?

CVE-2025-5351 affects Libssh Libssh; Redhat Enterprise Linux, Openshift Container Platform.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Libssh","product":"Libssh","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-24.