Patchwire CVEs, their patch status, and feeds to follow them

CVE-2025-5987

Fixed in a distro release EPSS 2%CVSS 8.1

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 2025-07-07 · CVE record · OSV

Products: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 10.0 Extended Update Support, Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions, Red Hat Enterprise Linux 9.4 Extended Update Support, Red Hat Enterprise Linux 9.6 Extended Update Support, Red Hat OpenShift Container Platform 4.13, Red Hat OpenShift Container Platform 4.14, Red Hat OpenShift Container Platform 4.15, Red Hat OpenShift Container Platform 4.16, Red Hat OpenShift Container Platform 4.17, Red Hat OpenShift Container Platform 4.18, Red Hat OpenShift Container Platform 4.19, Red Hat OpenShift Container Platform 4.20, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat OpenShift Container Platform 4

Distro releases

ReleasePackageFixed in
AlmaLinux 10libssh-config0.11.1-5.el10_1
AlmaLinux 9libssh0.10.4-17.el9_7
AlmaLinux 9libssh-config0.10.4-17.el9_7
AlmaLinux 9libssh-devel0.10.4-17.el9_7
Amazon Linux 2023libssh0.10.6-1.amzn2023.0.2
Amazon Linux 2023libssh-config0.10.6-1.amzn2023.0.2
Amazon Linux 2023libssh-devel0.10.6-1.amzn2023.0.2
Chainguardlibssh0.11.3-r0
Chainguardlibssh21.11.1-r1
Debian 12libssh0.10.6-0+deb12u2
Debian 13libssh0.11.2-1
Debian 14libssh0.11.2-1
Red Hat Enterprise Linux 10.1libssh0:0.11.1-5.el10_1
Red Hat Enterprise Linux 10.1libssh-config0:0.11.1-5.el10_1
Red Hat Enterprise Linux 10.1libssh-debuginfo0:0.11.1-5.el10_1
Red Hat Enterprise Linux 10.1libssh-debugsource0:0.11.1-5.el10_1
Red Hat Enterprise Linux 10.1libssh-devel0:0.11.1-5.el10_1
Red Hat Enterprise Linux 9libssh0:0.10.4-17.el9_7
Red Hat Enterprise Linux 9libssh-config0:0.10.4-17.el9_7
Red Hat Enterprise Linux 9libssh-debuginfo0:0.10.4-17.el9_7
Red Hat Enterprise Linux 9libssh-debugsource0:0.10.4-17.el9_7
Red Hat Enterprise Linux 9libssh-devel0:0.10.4-17.el9_7
Red Hat Enterprise Linux eus 10.0libssh0:0.11.1-4.el10_0.1
Red Hat rhel e4s 9.2libssh0:0.10.4-9.el9_2.2
Red Hat rhel eus 9.4libssh0:0.10.4-13.el9_4.2
Red Hat rhel eus 9.6libssh0:0.10.4-15.el9_6.1
Rocky Linux 10libssh0:0.11.1-5.el10_1
Rocky Linux 9libssh0:0.10.4-17.el9_7
SUSE Linux Micro 6.0libssh0.10.6-2.1
SUSE Linux Micro 6.1libssh0.10.6-slfo.1.1_2.1
Ubuntu 22.04 LTSlibssh0.9.6-2ubuntu0.22.04.4
Ubuntu 24.04 LTSlibssh0.10.6-2ubuntu0.1
Wolfilibssh0.11.3-r0
Wolfilibssh21.11.1-r1
openSUSE Tumbleweedlibssh0.11.2-1.1