Buffer overflow in Libssh
CVE-2026-15370
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.7 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.002, 6.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Libssh — versions 0.12.0
- Red Hat Enterprise Linux — versions 10.2, 10.0
- Red Hat Enterprise Linux For Els — versions 10.2
- Red Hat Enterprise Linux For Eus — versions 10.2
- Red Hat Enterprise Linux For IBM Z Systems — versions 10.0, 10.2
- Red Hat Enterprise Linux For IBM Z Systems Els — versions 10.2
- Red Hat Enterprise Linux For IBM Z Systems Eus — versions 10.2
- Red Hat Enterprise Linux For Power Little Endian — versions 10.0, 10.2
- Red Hat Enterprise Linux For Power Little Endian Els — versions 10.2
- Red Hat Enterprise Linux For Power Little Endian Eus — versions 10.2
Weakness classification (CWE)
References
- access.redhat.com/security/cve/CVE-2026-15370 (vdb-entry, Vendor Advisory)
- bugzilla.redhat.com/show_bug.cgi (issue-tracking, Issue Tracking, Vendor Advisory)
- access.redhat.com/errata/RHSA-2026:47768 (vendor-advisory, Vendor Advisory)
- access.redhat.com/errata/RHSA-2026:55855 (vendor-advisory, Vendor Advisory)