CVE-2025-5318
Fixed in a distro release EPSS 2%CVSS 5.4
A flaw was found in the libssh library in versions less than 0.11.2. An out-of-bounds read can be triggered in the sftp_handle function due to an incorrect comparison check that permits the function to access memory beyond the valid handle list and to return an invalid pointer, which is used in further processing. This vulnerability allows an authenticated remote attacker to potentially read unintended memory regions, exposing sensitive information or affect service behavior.
Products: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 8.2 Advanced Update Support, Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On, Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support, Red Hat Enterprise Linux 8.6 Telecommunications Update Service, Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions, Red Hat Enterprise Linux 8.8 Telecommunications Update Service, Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions, Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions, Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions, Red Hat Enterprise Linux 9.4 Extended Update Support, Red Hat OpenShift Container Platform 4.12, 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 AI Inference Server 3.2, Red Hat OpenShift distributed tracing 3.7.0, Red Hat OpenShift Container Platform 4
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 10 | libssh | 0.11.1-4.el10_1 |
| AlmaLinux 10 | libssh-config | 0.11.1-4.el10_0 |
| AlmaLinux 10 | libssh-config | 0.11.1-4.el10_1 |
| AlmaLinux 10 | libssh-devel | 0.11.1-4.el10_1 |
| AlmaLinux 8 | libssh | 0.9.6-15.el8_10 |
| AlmaLinux 8 | libssh-config | 0.9.6-15.el8_10 |
| AlmaLinux 8 | libssh-devel | 0.9.6-15.el8_10 |
| AlmaLinux 9 | libssh | 0.10.4-15.el9_7 |
| AlmaLinux 9 | libssh | 0.10.4-15.el9_6 |
| AlmaLinux 9 | libssh-config | 0.10.4-15.el9_7 |
| AlmaLinux 9 | libssh-config | 0.10.4-15.el9_6 |
| AlmaLinux 9 | libssh-devel | 0.10.4-15.el9_6 |
| AlmaLinux 9 | libssh-devel | 0.10.4-15.el9_7 |
| Amazon Linux 2023 | libssh | 0.10.6-1.amzn2023.0.2 |
| Amazon Linux 2023 | libssh-config | 0.10.6-1.amzn2023.0.2 |
| Amazon Linux 2023 | libssh-devel | 0.10.6-1.amzn2023.0.2 |
| Chainguard | libssh | 0.11.3-r0 |
| Chainguard | libssh2 | 1.11.1-r1 |
| Debian 11 | libssh | 0.9.8-0+deb11u2 |
| Debian 12 | libssh | 0.10.6-0+deb12u2 |
| Debian 13 | libssh | 0.11.2-1 |
| Debian 14 | libssh | 0.11.2-1 |
| Red Hat Enterprise Linux 10.0 | libssh | 0:0.11.1-4.el10_0 |
| Red Hat Enterprise Linux 10.0 | libssh-config | 0:0.11.1-4.el10_0 |
| Red Hat Enterprise Linux 10.0 | libssh-debuginfo | 0:0.11.1-4.el10_0 |
| Red Hat Enterprise Linux 10.0 | libssh-debugsource | 0:0.11.1-4.el10_0 |
| Red Hat Enterprise Linux 10.0 | libssh-devel | 0:0.11.1-4.el10_0 |
| Red Hat Enterprise Linux 10.1 | libssh | 0:0.11.1-4.el10_1 |
| Red Hat Enterprise Linux 10.1 | libssh-config | 0:0.11.1-4.el10_1 |
| Red Hat Enterprise Linux 10.1 | libssh-debuginfo | 0:0.11.1-4.el10_1 |
| Red Hat Enterprise Linux 10.1 | libssh-debugsource | 0:0.11.1-4.el10_1 |
| Red Hat Enterprise Linux 10.1 | libssh-devel | 0:0.11.1-4.el10_1 |
| Red Hat Enterprise Linux 8 | libssh | 0:0.9.6-15.el8_10 |
| Red Hat Enterprise Linux 8 | libssh-config | 0:0.9.6-15.el8_10 |
| Red Hat Enterprise Linux 8 | libssh-debuginfo | 0:0.9.6-15.el8_10 |
| Red Hat Enterprise Linux 8 | libssh-debugsource | 0:0.9.6-15.el8_10 |
| Red Hat Enterprise Linux 8 | libssh-devel | 0:0.9.6-15.el8_10 |
| Red Hat Enterprise Linux 9 | libssh | 0:0.10.4-15.el9_7 |
| Red Hat Enterprise Linux 9 | libssh | 0:0.10.4-15.el9_6 |
| Red Hat Enterprise Linux 9 | libssh-config | 0:0.10.4-15.el9_7 |
| Red Hat Enterprise Linux 9 | libssh-config | 0:0.10.4-15.el9_6 |
| Red Hat Enterprise Linux 9 | libssh-debuginfo | 0:0.10.4-15.el9_7 |
| Red Hat Enterprise Linux 9 | libssh-debuginfo | 0:0.10.4-15.el9_6 |
| Red Hat Enterprise Linux 9 | libssh-debugsource | 0:0.10.4-15.el9_6 |
| Red Hat Enterprise Linux 9 | libssh-debugsource | 0:0.10.4-15.el9_7 |
| Red Hat Enterprise Linux 9 | libssh-devel | 0:0.10.4-15.el9_7 |
| Red Hat Enterprise Linux 9 | libssh-devel | 0:0.10.4-15.el9_6 |
| Red Hat rhel aus 8.2 | libssh | 0:0.9.0-4.el8_2.1 |
| Red Hat rhel aus 8.2 | libssh-config | 0:0.9.0-4.el8_2.1 |
| Red Hat rhel aus 8.2 | libssh-debuginfo | 0:0.9.0-4.el8_2.1 |
| Red Hat rhel aus 8.2 | libssh-debugsource | 0:0.9.0-4.el8_2.1 |
| Red Hat rhel aus 8.2 | libssh-devel | 0:0.9.0-4.el8_2.1 |
| Red Hat rhel aus 8.4 | libssh | 0:0.9.4-2.el8_4.1 |
| Red Hat rhel aus 8.4 | libssh-config | 0:0.9.4-2.el8_4.1 |
| Red Hat rhel aus 8.4 | libssh-debuginfo | 0:0.9.4-2.el8_4.1 |
| Red Hat rhel aus 8.4 | libssh-debugsource | 0:0.9.4-2.el8_4.1 |
| Red Hat rhel aus 8.4 | libssh-devel | 0:0.9.4-2.el8_4.1 |
| Red Hat rhel aus 8.6 | libssh | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel aus 8.6 | libssh-config | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel aus 8.6 | libssh-debuginfo | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel aus 8.6 | libssh-debugsource | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel aus 8.6 | libssh-devel | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel e4s 8.6 | libssh | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel e4s 8.6 | libssh-config | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel e4s 8.6 | libssh-debuginfo | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel e4s 8.6 | libssh-debugsource | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel e4s 8.6 | libssh-devel | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel e4s 8.8 | libssh | 0:0.9.6-13.el8_8.1 |
| Red Hat rhel e4s 8.8 | libssh-config | 0:0.9.6-13.el8_8.1 |
| Red Hat rhel e4s 8.8 | libssh-debuginfo | 0:0.9.6-13.el8_8.1 |
| Red Hat rhel e4s 8.8 | libssh-debugsource | 0:0.9.6-13.el8_8.1 |
| Red Hat rhel e4s 8.8 | libssh-devel | 0:0.9.6-13.el8_8.1 |
| Red Hat rhel e4s 9.0 | libssh | 0:0.9.6-3.el9_0.1 |
| Red Hat rhel e4s 9.0 | libssh-config | 0:0.9.6-3.el9_0.1 |
| Red Hat rhel e4s 9.0 | libssh-debuginfo | 0:0.9.6-3.el9_0.1 |
| Red Hat rhel e4s 9.0 | libssh-debugsource | 0:0.9.6-3.el9_0.1 |
| Red Hat rhel e4s 9.0 | libssh-devel | 0:0.9.6-3.el9_0.1 |
| Red Hat rhel e4s 9.2 | libssh | 0:0.10.4-9.el9_2.1 |
| Red Hat rhel e4s 9.2 | libssh-config | 0:0.10.4-9.el9_2.1 |
| Red Hat rhel e4s 9.2 | libssh-debuginfo | 0:0.10.4-9.el9_2.1 |
| Red Hat rhel e4s 9.2 | libssh-debugsource | 0:0.10.4-9.el9_2.1 |
| Red Hat rhel e4s 9.2 | libssh-devel | 0:0.10.4-9.el9_2.1 |
| Red Hat rhel eus 9.4 | libssh | 0:0.10.4-13.el9_4.1 |
| Red Hat rhel eus 9.4 | libssh-config | 0:0.10.4-13.el9_4.1 |
| Red Hat rhel eus 9.4 | libssh-debuginfo | 0:0.10.4-13.el9_4.1 |
| Red Hat rhel eus 9.4 | libssh-debugsource | 0:0.10.4-13.el9_4.1 |
| Red Hat rhel eus 9.4 | libssh-devel | 0:0.10.4-13.el9_4.1 |
| Red Hat rhel eus long life 8.4 | libssh | 0:0.9.4-2.el8_4.1 |
| Red Hat rhel eus long life 8.4 | libssh-config | 0:0.9.4-2.el8_4.1 |
| Red Hat rhel eus long life 8.4 | libssh-debuginfo | 0:0.9.4-2.el8_4.1 |
| Red Hat rhel eus long life 8.4 | libssh-debugsource | 0:0.9.4-2.el8_4.1 |
| Red Hat rhel eus long life 8.4 | libssh-devel | 0:0.9.4-2.el8_4.1 |
| Red Hat rhel tus 8.6 | libssh | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel tus 8.6 | libssh-config | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel tus 8.6 | libssh-debuginfo | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel tus 8.6 | libssh-debugsource | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel tus 8.6 | libssh-devel | 0:0.9.6-4.el8_6.1 |
| Red Hat rhel tus 8.8 | libssh | 0:0.9.6-13.el8_8.1 |
| Red Hat rhel tus 8.8 | libssh-config | 0:0.9.6-13.el8_8.1 |
| Red Hat rhel tus 8.8 | libssh-debuginfo | 0:0.9.6-13.el8_8.1 |
| Red Hat rhel tus 8.8 | libssh-debugsource | 0:0.9.6-13.el8_8.1 |
| Red Hat rhel tus 8.8 | libssh-devel | 0:0.9.6-13.el8_8.1 |
| Rocky Linux 10 | libssh | 0:0.11.1-4.el10_0 |
| Rocky Linux 8 | libssh | 0:0.9.6-15.el8_10 |
| Rocky Linux 9 | libssh | 0:0.10.4-15.el9_6 |
| SUSE Enterprise Storage 7.1 | libssh | 0.9.8-150200.13.9.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS | libssh | 0.9.8-150200.13.9.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | libssh | 0.9.8-150400.3.9.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | libssh | 0.9.8-150400.3.9.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | libssh | 0.9.8-150400.3.9.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | libssh | 0.9.8-150400.3.9.1 |
| SUSE Linux Enterprise Micro 5.1 | libssh | 0.9.8-150200.13.9.1 |
| SUSE Linux Enterprise Micro 5.2 | libssh | 0.9.8-150200.13.9.1 |
| SUSE Linux Enterprise Micro 5.3 | libssh | 0.9.8-150400.3.9.1 |
| SUSE Linux Enterprise Micro 5.4 | libssh | 0.9.8-150400.3.9.1 |
| SUSE Linux Enterprise Micro 5.5 | libssh | 0.9.8-150400.3.9.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP6 | libssh | 0.9.8-150600.11.3.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | libssh | 0.9.8-150600.11.3.1 |
| SUSE Linux Enterprise Server 12 SP5-LTSS | libssh | 0.9.8-3.15.1 |
| SUSE Linux Enterprise Server 12 SP5-LTSS | libssh | 0.6.3-12.15.1 |
| SUSE Linux Enterprise Server 15 SP3-LTSS | libssh | 0.9.8-150200.13.9.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | libssh | 0.9.8-150400.3.9.1 |
| SUSE Linux Enterprise Server 15 SP5-LTSS | libssh | 0.9.8-150400.3.9.1 |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | libssh | 0.9.8-3.15.1 |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | libssh | 0.6.3-12.15.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP3 | libssh | 0.9.8-150200.13.9.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | libssh | 0.9.8-150400.3.9.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | libssh | 0.9.8-150400.3.9.1 |
| SUSE Linux Micro 6.0 | libssh | 0.10.6-2.1 |
| SUSE Linux Micro 6.1 | libssh | 0.10.6-slfo.1.1_2.1 |
| SUSE Manager Proxy 4.3 | libssh | 0.9.8-150400.3.9.1 |
| SUSE Manager Server 4.3 | libssh | 0.9.8-150400.3.9.1 |
| Ubuntu 22.04 LTS | libssh | 0.9.6-2ubuntu0.22.04.4 |
| Ubuntu 24.04 LTS | libssh | 0.10.6-2ubuntu0.1 |
| Ubuntu Pro 16.04 LTS | libssh | 0.6.3-4.3ubuntu0.6+esm2 |
| Ubuntu Pro 18.04 LTS | libssh | 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm4 |
| Ubuntu Pro 20.04 LTS | libssh | 0.9.3-2ubuntu2.5+esm1 |
| Wolfi | libssh | 0.11.3-r0 |
| Wolfi | libssh2 | 1.11.1-r1 |
| openSUSE Leap 15.6 | libssh | 0.9.8-150600.11.3.1 |
| openSUSE Tumbleweed | libssh | 0.11.2-1.1 |