CVE-2025-5372: Libssh: incorrect return code handling in ssh_kdf() in libssh
Vulnerability summary
CVE-2025-5372 is a high (CVSS 8.8) Incorrect Calculation vulnerability in libssh. EPSS estimates a 0.70% chance of exploitation in the next 30 days, higher than 54.7% of scored vulnerabilities.
Not severe (CVSS 5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · Related 8Timeline
- 04-07-2025PublishedVulnerability first disclosed.
- 26-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA5.0MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · Red hatEcosystem advisory · calculated5.0MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.70%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
Increase +0.20 pp
From 0.50% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat7 products
- enterprise_linuxEOL6.0 | 7.0 | 8.0 | 9.0 | 10.0
- openshift_container_platform4.0
- libssh< 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-4.el8_6.2
- libssh-config< 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-4.el8_6.2
- libssh-debuginfo< 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-4.el8_6.2
Alpine1 product
- libssh< 0.11.2-r0
Debian1 product
- libssh< 0.10.6-0+deb12u2 | < 0.11.2-1
Libssh1 product
- libssh< 0.11.2
Ubuntu1 product
- libsshAll versions (No fix recorded) | < 0.9.6-2ubuntu0.22.04.4 | < 0.10.6-2ubuntu0.1
5 vendors · 11 products
References
20 links- bugzilla.redhat.com/show_bug.cgi?id=2369388Issue TrackingX Refsource REDHATREPORTThird Party Advisory