What’s Vulnerable › Vulnerabilities
CVE-2026-15370: Libssh: libssh: stack buffer overflow in sftp server longname construction
- Severity: high (CVSS 7.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-21 · updated 2026-09-22
- Weakness: CWE-121
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: from 0.11.0 before 0.11.5; 0.12.0 — fixed in 0.11.5
- Red Hat Enterprise Linux: 10.0, 10.2
- RedHat Enterprise Linux For Els: 10.2
- RedHat Enterprise Linux For Eus: 10.2
- RedHat Enterprise Linux For Ibm Z Systems: 10.0, 10.2
- RedHat Enterprise Linux For Ibm Z Systems Els: 10.2
- RedHat Enterprise Linux For Ibm Z Systems Eus: 10.2
- RedHat Enterprise Linux For Power Little Endian: 10.0, 10.2
- RedHat Enterprise Linux For Power Little Endian Els: 10.2
- RedHat Enterprise Linux For Power Little Endian Eus: 10.2
- RedHat Hardened Images: all versions
How to fix
Upgrade to a fixed version: libssh 0.11.5. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/errata/RHSA-2026:47768
- https://access.redhat.com/errata/RHSA-2026:55855
- https://access.redhat.com/security/cve/CVE-2026-15370
- https://bugzilla.redhat.com/show_bug.cgi?id=2499049
Get alerted when CVE-2026-15370 or the next vulnerability affects your stack