Vulnerability in Libssh
CVE-2025-5372
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.
EPSS: 0.004 (34.2th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.0 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L.
Affected products
- Libssh — versions 0
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8 — versions 0:0.9.6-16.el8_10
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support — versions 0:0.9.4-2.el8_4.2
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-life Add-on — versions 0:0.9.4-2.el8_4.2
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support — versions 0:0.9.6-4.el8_6.2
- Red Hat Enterprise Linux 8.6 Extended Update Support Long-life Add-on — versions 0:0.9.6-4.el8_6.2
- Red Hat Enterprise Linux 8.8 Telecommunications Update Service — versions 0:0.9.6-13.el8_8.2
Weakness classification (CWE)
Public proof-of-concept exploits
References
- RHSA-2025:21977 (x_refsource_REDHAT, vendor-advisory)
- RHSA-2025:23024 (x_refsource_REDHAT, vendor-advisory)
- secalert@redhat.com (x_refsource_REDHAT, Third Party Advisory, vdb-entry)
- RHBZ#2369388 (x_refsource_REDHAT, issue-tracking, Third Party Advisory, Issue Tracking)
- RHSA-2026:20610 (x_refsource_REDHAT, vendor-advisory)
- RHSA-2026:24349 (x_refsource_REDHAT, vendor-advisory)
- RHSA-2026:25911 (x_refsource_REDHAT, vendor-advisory)
Frequently asked questions
- What is CVE-2025-5372?
- CVE-2025-5372 is a medium-severity vulnerability in Libssh, classified under Incorrect Calculation. CVSS score: 5.0/10. Published 2025-07-04.
- How severe is CVE-2025-5372?
- Medium severity. CVSS v3 base score is 5.0 out of 10.
- Is CVE-2025-5372 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.