Logo
vulnerabilityCVE-2025-5987
Name
CVE-2025-5987
Source
NVD ( link)Debian ( link)
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
libssh
Patched

Vulnerability Ratings#


8.1
CVSSv31
8.1
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
0.11.4
Not Affected
buildroot
master
0.12.0
Not Affected
openwrt
master
0.12.0-r1
Not Affected
openwrt
openwrt-25.12
0.11.3-r1
Not Affected
yocto
kirkstone
0.8.9
Not Affected
yocto
master
0.11.4
Not Affected

Resolved with patches#


libssh (yocto:scarthgap)

#
Title
Author
Resolve
1
CVE-2025-5987 libcrypto: Correctly detect failures of chacha
Jakub Jelen <jjelen@redhat.com>
CVE-2025-5987