CVE Vulnerabilities

CVE-2025-5987

Return of Wrong Status Code

Published: Jul 07, 2025 | Modified: Jan 30, 2026
CVSS 3.x
8.1
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
8.1 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

A function or operation returns an incorrect return value or status code that does not indicate the true result of execution, causing the product to modify its behavior based on the incorrect result.

Affected Software

NameVendorStart VersionEnd Version
LibsshLibssh0.10.0 (including)0.11.2 (excluding)
Red Hat Enterprise Linux 10RedHatlibssh-0:0.11.1-5.el10_1*
Red Hat Enterprise Linux 10.0 Extended Update SupportRedHatlibssh-0:0.11.1-4.el10_0.1*
Red Hat Enterprise Linux 9RedHatlibssh-0:0.10.4-17.el9_7*
Red Hat Enterprise Linux 9RedHatlibssh-0:0.10.4-17.el9_7*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatlibssh-0:0.10.4-9.el9_2.2*
Red Hat Enterprise Linux 9.4 Extended Update SupportRedHatlibssh-0:0.10.4-13.el9_4.2*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatlibssh-0:0.10.4-15.el9_6.1*
Red Hat OpenShift Container Platform 4.14RedHatrhcos-414.92.202601191325-0*
Red Hat OpenShift Container Platform 4.16RedHatrhcos-416.94.202601160124-0*
Red Hat OpenShift Container Platform 4.17RedHatrhcos-417.94.202601120213-0*
Red Hat OpenShift Container Platform 4.20RedHatrhcos-4.20.9.6.202601211057-0*
LibsshUbuntunoble*
LibsshUbuntuoracular*
LibsshUbuntuplucky*
LibsshUbuntuupstream*

References