CVE-2025-5372: libssh Incorrect Calculation
Vulnerability summary
CVE-2025-5372 is a high (CVSS 8.8) Incorrect Calculation vulnerability in libssh. EPSS estimates a 0.50% chance of exploitation in the next 30 days, higher than 41.5% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 10 · Related 8Timeline
- 04-07-2025PublishedVulnerability first disclosed.
- 01-09-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
5 scores · 5 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
EPSS trend
Probability
0.50%
Chance of exploitation in the next 30 days
Percentile
42%
Versus all other CVEs
30-day change
+0.07 pp
From 0.43% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Redhat7 products
- enterprise_linuxEOL6.0 | 7.0 | 8.0 | 9.0 | 10.0
- openshift_container_platform4.0
- libssh< 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-4.el8_6.2
- libssh-config< 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-4.el8_6.2
- libssh-debuginfo< 0:0.9.6-13.el8_8.2 | < 0:0.9.4-2.el8_4.2 | < 0:0.9.6-16.el8_10 | < 0:0.9.6-3.el9_0.2 | < 0:0.9.6-4.el8_6.2
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
4 vendors · 10 products
References
19 links- bugzilla.redhat.com/show_bug.cgi?id=2369388Issue TrackingX Refsource REDHATREPORTThird Party Advisory