CVE-2025-5372
HIGH 8.8CVSS 3.1Libssh: incorrect return code handling in ssh_kdf() in libssh
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
- 4 Jul 2025
- Last modified
- 26 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-682
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L |
| CVE List | redhat | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | libssh | libsshcpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:* |
< 0.11.2 | 0.11.2 |
| NVD | redhat | openshift_container_platformcpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:* |
= 4.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:* |
= 6.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| CVE List | https://git.libssh.org/projects/libssh.git | libssh | < 0.11.2 | 0.11.2 |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/a:redhat:enterprise_linux:8::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/a:redhat:rhel_aus:8.4::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/a:redhat:rhel_aus:8.4::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/a:redhat:rhel_aus:8.6::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/a:redhat:rhel_aus:8.6::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/a:redhat:rhel_e4s:8.8::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/a:redhat:rhel_e4s:8.8::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/a:redhat:rhel_e4s:9.0::appstream |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/o:redhat:enterprise_linux:10 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libssh2cpe:/o:redhat:rhel_els:6 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libssh2cpe:/o:redhat:rhel_els:7 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libsshcpe:/o:redhat:enterprise_linux:9 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | openshift/ose-rhel-coreos-8cpe:/a:redhat:openshift:4 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | openshift/ose-rhel-coreos-9cpe:/a:redhat:openshift:4 |
References
- https://access.redhat.com/errata/RHSA-2025:21977 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:23024 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:20610 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:24349 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:25911 · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-5372 · Third Party Advisory, vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2369388 · Issue Tracking, Third Party Advisory, issue-tracking, x_refsource_REDHAT
History
- 26 Nov 2026 04:53 UTC · CVE List: updated (other details)
- 25 Nov 2026 20:36 UTC · CVE List: first stored (published 4 Jul 2025)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 4 Jul 2025)