Skip to content

CVE-2026-15370 Libssh: libssh: stack buffer overflow in sftp server longname construction

HighCVSS 7.3 EPSS 0.17%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

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.

Upgrade path

18 packages: 9 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
redhat hardened images All versions No fix listed No fix yet
alpine/libssh(Alpine v3.24) >= 0.11.0, < 0.12.1-r0 0.12.1-r0 Fixed
debian/libssh(Debian 13) < 0.11.5-0+deb13u1; = 0.11.2-1; = 0.11.2-1+deb13u1; = 0.11.3-1 0.11.5-0+deb13u1 Fixed
debian/libssh(Debian 14) < 0.12.1-1; = 0.11.2-1; = 0.11.3-1; = 0.12.0-1 +2 more 0.12.1-1 Fixed
libssh = 0.12.0; >= 0.11.0, < 0.11.5 0.11.5 Fixed
redhat enterprise linux < 0:0.12.0-3.el10_2; = 8; = 9; = 10.0 +1 more 0:0.12.0-3.el10_2 Fixed
redhat hummingbird < 0.12.2-1.hum1 0.12.2-1.hum1 Fixed
redhat/libssh(Red Hat enterprise_linux 10.2) < 0.12.0-3.el10_2 0.12.0-3.el10_2 Fixed
redhat/libssh-main(Red Hat hummingbird 1) < 0.12.2-1.hum1 0.12.2-1.hum1 Fixed
ubuntu/libssh(Ubuntu 26.04) < 0.11.3-1ubuntu2.1 0.11.3-1ubuntu2.1 Fixed
redhat enterprise linux for els = 10.2 No fix listed Versions listed
redhat enterprise linux for eus = 10.2 No fix listed Versions listed
redhat enterprise linux for ibm z systems = 10.0; = 10.2 No fix listed Versions listed
redhat enterprise linux for ibm z systems els = 10.2 No fix listed Versions listed
redhat enterprise linux for ibm z systems eus = 10.2 No fix listed Versions listed
redhat enterprise linux for power little endian = 10.0; = 10.2 No fix listed Versions listed
redhat enterprise linux for power little endian els = 10.2 No fix listed Versions listed
redhat enterprise linux for power little endian eus = 10.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
redhat/libssh(Red Hat:enterprise_linux:10.2) < 0.12.0-3.el10_2 0.12.0-3.el10_2
redhat/libssh-main(Red Hat:hummingbird:1) < 0.12.2-1.hum1 0.12.2-1.hum1
debian/libssh(Debian:13) < 0.11.5-0+deb13u1 0.11.5-0+deb13u1
debian/libssh(Debian:13) = 0.11.2-1 No fix listed
debian/libssh(Debian:13) = 0.11.2-1+deb13u1 No fix listed
debian/libssh(Debian:13) = 0.11.3-1 No fix listed
debian/libssh(Debian:14) < 0.12.1-1 0.12.1-1
debian/libssh(Debian:14) = 0.11.2-1 No fix listed
debian/libssh(Debian:14) = 0.11.3-1 No fix listed
debian/libssh(Debian:14) = 0.12.0-1 No fix listed
debian/libssh(Debian:14) = 0.12.0-2 No fix listed
debian/libssh(Debian:14) = 0.12.0-3 No fix listed
alpine/libssh(Alpine:v3.24) >= 0.11.0, < 0.12.1-r0 0.12.1-r0
ubuntu/libssh(Ubuntu:26.04) < 0.11.3-1ubuntu2.1 0.11.3-1ubuntu2.1
libssh >= 0.11.0, < 0.11.5 0.11.5
libssh = 0.12.0 No fix listed
redhat hardened images All versions No fix listed
redhat enterprise linux = 10.0 No fix listed
redhat enterprise linux = 10.2 No fix listed
redhat enterprise linux for els = 10.2 No fix listed
redhat enterprise linux for eus = 10.2 No fix listed
redhat enterprise linux for ibm z systems = 10.0 No fix listed
redhat enterprise linux for ibm z systems = 10.2 No fix listed
redhat enterprise linux for ibm z systems els = 10.2 No fix listed
redhat enterprise linux for ibm z systems eus = 10.2 No fix listed
Show 8 more
ProductAffected versionsFixed in
redhat enterprise linux for power little endian = 10.0 No fix listed
redhat enterprise linux for power little endian = 10.2 No fix listed
redhat enterprise linux for power little endian els = 10.2 No fix listed
redhat enterprise linux for power little endian eus = 10.2 No fix listed
redhat enterprise linux < 0:0.12.0-3.el10_2 0:0.12.0-3.el10_2
redhat hummingbird < 0.12.2-1.hum1 0.12.2-1.hum1
redhat enterprise linux = 8 No fix listed
redhat enterprise linux = 9 No fix listed

References