Vulnerability

CVE-2025-5987

highCVSS 3.1 8.1Published 7 Jul 2025

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library. If an attacker manages to exhaust the heap space, this error is not detected and may lead to libssh using a partially initialized cipher context. This occurs because the OpenSSL error code returned aliases with the SSH_OK code, resulting in libssh not properly detecting the error returned by the OpenSSL library. This issue can lead to undefined behavior, including compromised data confidentiality and integrity or crashes.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Libssh libssh

Weakness type

References

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning