עברית

Vulnerability Intelligence

CVE-2025-5987

High 8.1

Published
Last modified
NVD status
Modified

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

libssh: libssh

References10

Metrics

CVSS 3.1
8.1 HIGH Score source: CNA CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS — exploit probability
2% percentile: 78 · as of 7 November 2026
CWE
CWE-393

Could this be exploited in your environment?

A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.