CVE-2025-5372
5.0 MEDIUMA flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for ke...
Published: 2025-07-04 · Last updated: 2026-06-08
Severity and scoring
- CVSS
- 5.0 MEDIUM
- Vector
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- CWE
- CWE-682
Affected products
| Vendor | Product |
|---|---|
| libssh | enterprise_linux, libssh, openshift_container_platform |
| redhat | enterprise_linux, libssh, openshift_container_platform |
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2025-5372
- [Other]https://access.redhat.com/errata/RHSA-2025:21977
- [Other]https://access.redhat.com/errata/RHSA-2025:23024
- [Other]https://access.redhat.com/errata/RHSA-2026:20610
- [Other]https://access.redhat.com/errata/RHSA-2026:24349
- [Other]https://access.redhat.com/security/cve/CVE-2025-5372
- [Other]https://bugzilla.redhat.com/show_bug.cgi?id=2369388
Related CVEs
Same vendor
- CVE-2026-50259 — A stack-based buffer overflow flaw was found in the X.Org X server and Xwayland (7.8 HIGH)
- CVE-2026-50258 — A stack-based buffer overflow flaw was found in the X.Org X server and Xwayland (7.8 HIGH)
- CVE-2026-50257 — A use-after-free flaw was found in the X.Org X server and Xwayland in miSyncDestroyFence() (7.8 HIGH)
- CVE-2026-50256 — A stack-based buffer overflow flaw was found in the X.Org X server and Xwayland (7.8 HIGH)
- CVE-2026-1784 — The Route OpenShift resource allows to define routes to make pods reachable at a subdomain through HAProxy (8.8 HIGH)
Same CWE
- CVE-2026-44074 — Netatalk 2.1.0 through 4.4.2 combines multiple errno values using bitwise OR, resulting in incorrect error codes when multiple error cond... (3.7 LOW)
- CVE-2026-7836 — An incorrect calculation in the hextoint macro in Netatalk 2.0.0 through 4.4.2 due to improper uppercase character handling allows a remo... (3.1 LOW)
- CVE-2023-7346 — Ledger Bitcoin app versions 2.1.0 and 2.1.1 contain an address derivation vulnerability that allows attackers to cause incorrect Bitcoin ... (4.0 MEDIUM)