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.
Published · last modified .
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.
EPSS exploit prediction
EPSS 0.005, 44.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Libssh — versions 0
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 9
- Red Hat Openshift Container Platform 4
- Red Hat Enterprise Linux — versions 6.0, 7.0, 8.0
- Red Hat Openshift Container Platform — versions 4.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (8-cm/kube-dump, fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- access.redhat.com/errata/RHSA-2025:21977 (vendor-advisory)
- access.redhat.com/errata/RHSA-2025:23024 (vendor-advisory)
- access.redhat.com/security/cve/CVE-2025-5372 (Third Party Advisory, vdb-entry)
- bugzilla.redhat.com/show_bug.cgi (issue-tracking, Third Party Advisory, Issue Tracking)
- access.redhat.com/errata/RHSA-2026:20610 (vendor-advisory)
- access.redhat.com/errata/RHSA-2026:24349 (vendor-advisory)
- access.redhat.com/errata/RHSA-2026:25911 (vendor-advisory)