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
libssh: libssh; redhat: hardened images; redhat: enterprise linux; redhat: enterprise linux for els; redhat: enterprise linux for eus; redhat: enterprise linux for ibm z systems; redhat: enterprise linux for ibm z systems els; redhat: enterprise linux for ibm z systems eus; redhat: enterprise linux for power little endian; redhat: enterprise linux for power little endian els; redhat: enterprise linux for power little endian eus
References4
- access.redhat.com/errata/RHSA-2026:47768 Vendor Advisory
- access.redhat.com/errata/RHSA-2026:55855 Vendor Advisory
- access.redhat.com/security/cve/CVE-2026-15370 Vendor Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2499049 Issue TrackingVendor Advisory
Metrics
- CVSS 3.1
-
7.3
HIGH
Score source: NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 0% percentile: 6 · as of 14 November 2026
- CWE
- CWE-121
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.