CVE-2025-5372
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-5372 is a security vulnerability affecting all versions of libssh built with OpenSSL versions lower than 3.0. The vulnerability was discovered by Ronald Crane and disclosed on June 25, 2025. The issue involves the ssh_kdf() function returning a success code on certain failures, which affects the SSH key derivation functionality (LibSSH Advisory).

Technical details

The vulnerability stems from a mismatch between OpenSSL and libssh return value conventions, where OpenSSL's return value 0 (indicating failure) aliases with libssh's SSHOK (0). This causes sshkdf() to return a success code without properly initializing output buffers. The vulnerability has been assigned a CVSS v3.1 score of 4.5 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C) (LibSSH Advisory).

Impact

When exploited, this vulnerability can lead to the use of uninitialized cryptographic keys and subsequent failures in encrypting or decrypting communication. This poses a significant security risk as it could potentially compromise the confidentiality and integrity of SSH sessions (LibSSH Advisory).

Mitigation and workarounds

A fix has been released in libssh version 0.11.2. As a workaround, administrators can build libssh with OpenSSL 3.0 or later versions. The libssh team strongly recommends upgrading to the latest version or applying the available security patches as soon as possible (LibSSH Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management