BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2025-5372 in Libssh and 2 more products

High 8.8

A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a succes...

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

CVSS 3.18.8
EPSS1.0%
EPSS percentile63th
FixSee advisory

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

Affected products and versions

VendorProductAffected versions
Libssh Libssh < 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 libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.

Source: NIST NVD / MITRE CVE.

Record details

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

Weakness definitions

CWE-682: CWE-682

Related attack patterns (CAPEC)

CAPEC-128 Integer Attacks via CWE-682

CAPEC-129 Pointer Manipulation via CWE-682

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A flaw in libssh versions built with OpenSSL versions older than 3.0 can lead to uninitialized cryptographic keys due to inconsistent return value interpretation in the ssh_kdf() function.

An attacker could exploit this vulnerability to perform man-in-the-middle attacks or other cryptographic attacks, potentially leading to unauthorized access or data breaches.

Questions

What is CVE-2025-5372?

A flaw in libssh versions built with OpenSSL versions older than 3.0 can lead to uninitialized cryptographic keys due to inconsistent return value interpretation in the ssh_kdf() function.

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

CVE-2025-5372 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.0%.

Is CVE-2025-5372 actively exploited?

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

How do I remediate CVE-2025-5372?

Priority: IMMEDIATE. Advisory: https://access.redhat.com/errata/RHSA-2025:21977

What systems are affected by CVE-2025-5372?

CVE-2025-5372 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.