Skip to content
OpenAdvisories
Medium · 6.7 CVE-2026-15370 EUVD-2026-46169GHSA-6j7f-8jjp-mm8c

Libssh: libssh: stack buffer overflow in sftp server longname construction

Published Jul 21, 2026 · Updated Nov 5, 2026 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Hardened Images — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libssh 0.12.1-1 —
Debian 13 libssh 0.11.5-0+deb13u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libssh 0.11.3-1ubuntu2.1 USN-8699-1
Ubuntu 24.04 LTS libssh 0.10.6-2ubuntu0.5 USN-8699-1
Ubuntu 22.04 LTS libssh 0.9.6-2ubuntu0.22.04.8 USN-8699-1
ReleasePackageFixed inAdvisory
RHEL 10 libssh +2 0.12.0-3.el10_2 RHSA-2026:55855
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 libssh +2 0.12.2-1.hum1 RHSA-2026:47768

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 libssh +2 0.12.0-3.el10_2 ALSA-2026:55855

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 libssh 0.12.0-3.el10_2 RLSA-2026:55855
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 libssh 0.11.5-160000.1.1 SUSE-SU-2026:22956-1, SUSE-SU-2026:22948-1
SLES 16.0 libssh 0.11.5-160000.1.1 SUSE-SU-2026:22956-1, SUSE-SU-2026:22948-1
SLE Micro 6.2 libssh 0.11.5-160000.1.1 SUSE-SU-2026:22940-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libssh 0.11.5-1.2 openSUSE-SU-2026:11377-1
openSUSE Leap 16.0 libssh 0.11.5-160000.1.1 openSUSE-SU-2026:21444-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libssh 0.12.1-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 libssh +2 0.12.0-3.el10_2 ELSA-2026-55855

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling libssh +1 0.12.1-r0 —

Advisories 12

References