CVE-2025-5987

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.
Configurations

Configuration 1 (hide)

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

History

03 Feb 2026, 22:16

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:0980 -

Information

Published : 2025-07-07 15:15

Updated : 2026-02-03 22:16


NVD link : CVE-2025-5987

Mitre link : CVE-2025-5987

CVE.ORG link : CVE-2025-5987


JSON object : View

Products Affected

libssh

  • libssh
CWE
CWE-393

Return of Wrong Status Code