cvedb.io
CVE-2025-5372
MEDIUM · CVSS 5
EPSS exploitation probability: 0%
Published 2025-07-04T06:15:24.930 · Last modified 2026-06-17T09:47:47.260

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 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 products

libssh — libssh

Does this affect you?

Add your gear to cvedb and we'll alert you only when libssh ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.