StraitOfVuln
Latest / CVE-2025-5987

CVE-2025-5987

HighCVSS 8.1 (v3.1)Modified
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2025-5987
Published / updated
07 Jul 2025, 15:15 UTC · last modified 23 Nov 2026, 23:17 UTC
Severity
HIGH
CVSS score
8.1 · v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H · Attack vector: Network
Affected vendor
Affected products
Libssh
Affected versions
Libssh: ≥ 0.10.0, < 0.11.2
Fixed versions
libssh 0.11.2
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
1.73% probability of exploitation in the next 30 days · 78% percentile (02 Dec 2026)
Weakness
Remediation
Upgrade to a fixed release (libssh 0.11.2) per the vendor advisory.
Source (CNA)
secalert@redhat.com