CVE-2025-5987

EUVD-2025-20227
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.1 HIGH
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
redhatCNA
8.1 HIGH
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 13%
Affected Products (NVD)
VendorProductVersion
libsshlibssh
0.10.0 ≤
𝑥
< 0.11.2
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
libssh
bookworm
0.10.6-0+deb12u2
fixed
bookworm (security)
vulnerable
bullseye
0.9.8-0+deb11u1
not-affected
bullseye (security)
0.9.8-0+deb11u2
fixed
forky
0.11.3-1
fixed
sid
0.11.3-1
fixed
trixie
0.11.2-1+deb13u1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libssh
bionic
not-affected
focal
not-affected
jammy
not-affected
noble
Fixed 0.10.6-2ubuntu0.1
released
oracular
Fixed 0.10.6-3ubuntu1.1
released
plucky
Fixed 0.11.1-1ubuntu0.1
released
xenial
not-affected