CVEvulnerability

CVE-2025-5987

8.1 HIGH Published 2025-07-07 Modified 2026-10-16 Official page ↗
Status
Modified
Published
2025-07-07
Last modified
2026-10-16
Assigner
[email protected]
CVSS 3.1 ([email protected])
8.1 HIGH — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.1 ([email protected])
8.1 HIGH — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-393

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 configurations

• libssh libssh (>= 0.10.0 < 0.11.2)

Related

Weakness · CWE (1)

  • CWE-393 Return of Wrong Status Code weakness

References