CVE-2026-15370
Fixed in a distro release EPSS <1%CVSS 6.7
A flaw was found in libssh. During SFTP server directory listing, the longname field is constructed with unsafe concatenation into a fixed-size stack buffer. When a client causes the server to list attacker-controlled filenames, sufficiently long names can overflow that stack buffer and may lead to crashes or possible code execution on the server.
Products: Red Hat Enterprise Linux 10, Red Hat Hardened Images, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 10 | libssh | 0.12.0-3.el10_2 |
| AlmaLinux 10 | libssh-config | 0.12.0-3.el10_2 |
| AlmaLinux 10 | libssh-devel | 0.12.0-3.el10_2 |
| Chainguard | libssh | 0.12.1-r0 |
| Chainguard | libssh-dev | 0.12.1-r0 |
| Chainguard | libssh2 | 0 |
| Debian 13 | libssh | 0.11.5-0+deb13u1 |
| Debian 14 | libssh | 0.12.1-1 |
| Red Hat Enterprise Linux 10.2 | libssh | 0:0.12.0-3.el10_2 |
| Red Hat Enterprise Linux 10.2 | libssh-config | 0:0.12.0-3.el10_2 |
| Red Hat Enterprise Linux 10.2 | libssh-debuginfo | 0:0.12.0-3.el10_2 |
| Red Hat Enterprise Linux 10.2 | libssh-debugsource | 0:0.12.0-3.el10_2 |
| Red Hat Enterprise Linux 10.2 | libssh-devel | 0:0.12.0-3.el10_2 |
| Red Hat hummingbird 1 | libssh | 0:0.12.2-1.hum1 |
| Red Hat hummingbird 1 | libssh-config | 0:0.12.2-1.hum1 |
| Red Hat hummingbird 1 | libssh-devel | 0:0.12.2-1.hum1 |
| Rocky Linux 10 | libssh | 0:0.12.0-3.el10_2 |
| SUSE Linux Enterprise Server 16.0 | libssh | 0.11.5-160000.1.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | libssh | 0.11.5-160000.1.1 |
| SUSE Linux Micro 6.2 | libssh | 0.11.5-160000.1.1 |
| Ubuntu 22.04 LTS | libssh | 0.9.6-2ubuntu0.22.04.8 |
| Ubuntu 24.04 LTS | libssh | 0.10.6-2ubuntu0.5 |
| Ubuntu 26.04 LTS | libssh | 0.11.3-1ubuntu2.1 |
| Wolfi | libssh | 0.12.1-r0 |
| Wolfi | libssh-dev | 0.12.1-r0 |
| Wolfi | libssh2 | 0 |
| openSUSE Leap 16.0 | libssh | 0.11.5-160000.1.1 |
| openSUSE Tumbleweed | libssh | 0.11.5-1.2 |