Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2025-5987
VULNERABILITY

CVE-2025-5987

Common Vulnerabilities and Exposures record

HIGH

Summary

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.

Risk

CVSS
8.1
Severity
HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Timeline

Published
Jul 7, 2025 15:15
Modified
Nov 5, 2026 17:17
Last observed
Nov 5, 2026 13:00

CWE

CWE-393

Affected product identifiers

cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*

References