{"id":"CVE-2025-5372","title":"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","summary":"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 f…","severity":"medium","cvss":5,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","cwe":["CWE-682"],"vendor":"libssh","product":"libssh","affected":["libssh < 0.11.2","openshift_container_platform = 4.0","enterprise_linux = 6.0","enterprise_linux = 7.0","enterprise_linux = 8.0","enterprise_linux = 9.0","enterprise_linux = 10.0"],"patched":["libssh 0.11.2"],"published":"2025-07-04","updated":"2026-06-17","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-5372","references":[{"url":"https://access.redhat.com/errata/RHSA-2025:21977","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2025:23024","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2026:20610","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2026:24349","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/errata/RHSA-2026:25911","label":"secalert@redhat.com"},{"url":"https://access.redhat.com/security/cve/CVE-2025-5372","label":"secalert@redhat.com"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2369388","label":"secalert@redhat.com"}],"tags":["nvd"],"epss":0.00432,"epssPercentile":0.37022,"ingestedAt":"2026-08-21T13:17:17.952Z","slug":"CVE-2025-5372","body":"## Overview\n\nA 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.\n\n## Affected\n\n- `libssh < 0.11.2`\n- `openshift_container_platform = 4.0`\n- `enterprise_linux = 6.0`\n- `enterprise_linux = 7.0`\n- `enterprise_linux = 8.0`\n- `enterprise_linux = 9.0`\n- `enterprise_linux = 10.0`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `libssh 0.11.2`","depth":"sunlit","depthScore":28,"depthScoreParts":{"impact":27.5,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}