CVEvulnerability
CVE-2025-5372
8.8 HIGH
Official page ↗
- Status
- Modified
- Published
- 2025-07-04
- Last modified
- 2026-09-01
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.0 MEDIUM — CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- CVSS 3.1 ([email protected])
- 8.8 HIGH — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-682
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.
Affected configurations
• libssh libssh (< 0.11.2)
• redhat openshift container platform 4.0
• redhat enterprise linux 6.0
• redhat enterprise linux 7.0
• redhat enterprise linux 8.0
• redhat enterprise linux 9.0
• redhat enterprise linux 10.0
Related
Weakness · CWE (1)
- CWE-682 Incorrect Calculation weakness
References
- https://access.redhat.com/errata/RHSA-2025:21977 access.redhat.com
- https://access.redhat.com/errata/RHSA-2025:23024 access.redhat.com
- https://access.redhat.com/errata/RHSA-2026:20610 access.redhat.com
- https://access.redhat.com/errata/RHSA-2026:24349 access.redhat.com
- https://access.redhat.com/errata/RHSA-2026:25911 access.redhat.com
- https://access.redhat.com/security/cve/CVE-2025-5372 Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2369388 Issue Tracking, Third Party Advisory