CVE-2025-5372Libssh
High 8.8
Follow: this CVE · Libssh · Libssh We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.1
- 8.8
- EPSS
- —
- Auth required
- Yes
- Published
- Jul 4, 2025
- Updated
- Nov 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-682
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Libssh.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| 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 |
Official advisories
- Red Hat Security Advisory: libssh security update · Red Hat · RHSA-2026:25911 · Jun 15, 2026 Medium
- Red Hat Security Advisory: libssh security update · Red Hat · RHSA-2026:24349 · Jun 8, 2026 Medium
- Red Hat Security Advisory: libssh security update · Red Hat · RHSA-2026:20610 · May 26, 2026 Medium
Also: Red Hat (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com Third Party Advisory
- bugzilla.redhat.com Issue Tracking Third Party Advisory