CVE-2025-5372 Details
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.
A vulnerability exists in libssh versions compiled with OpenSSL versions prior to 3.0, specifically within the key derivation function ssh_kdf(). The issue arises from a mismatch in how return values are interpreted: OpenSSL uses 0 to signal failure, while libssh interprets 0 as a success. This discrepancy can lead to the function incorrectly reporting a successful key derivation, even when it has failed. Consequently, uninitialized cryptographic key buffers may be used in later communications, potentially jeopardizing the confidentiality, integrity, and availability of SSH sessions.
To address this vulnerability, ensure that libssh is built with OpenSSL version 3.0 or later. Apply any available vendor patches or updates to the latest libssh security release.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-682 | Incorrect Calculation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libssh libssh | < 0.11.2 |
CPE
Remediation
| |
| redhat openshift container platform | 4.0 |
CPE
Remediation
| |
| redhat enterprise linux | 6.0 7.0 8.0 9.0 10.0 |
CPE
Remediation
| |
Change History
13 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | [email protected] |
| Sep 1, 2026 | CVE Modified | [email protected] |
| Aug 31, 2026 | CVE Modified | [email protected] |
| Aug 21, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 15, 2026 | CVE Modified | [email protected] |
| Jun 8, 2026 | CVE Modified | [email protected] |
| May 26, 2026 | CVE Modified | [email protected] |
| Dec 10, 2025 | CVE Modified | [email protected] |
| Nov 24, 2025 | CVE Modified | [email protected] |
| Aug 22, 2025 | Initial Analysis | [email protected] |
| Jul 4, 2025 | New CVE Received | [email protected] |