CVE-2026-15370
6.7medium
Libssh: libssh: stack buffer overflow in sftp server longname construction
- Severity
- 6.7medium CVSS:3.1 by redhat
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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
| Product or package | Versions | Reported by |
|---|---|---|
| libssh | Not specified Not affected: from 0:0.12.0-3.el10_2 before * | CVE List |
| libssh-main | Not specified Not affected: from 0.12.2-1.hum1 before * | CVE List |
| libssh libssh | from 0.11.0 before 0.11.5, 0.12.0 | NVD |
| redhat hardened_images | Not specified | NVD |
| redhat enterprise_linux | 10.0, 10.2 | NVD |
| redhat enterprise_linux_for_els | 10.2 | NVD |
| redhat enterprise_linux_for_eus | 10.2 | NVD |
| redhat enterprise_linux_for_ibm_z_systems | 10.0, 10.2 | NVD |
| redhat enterprise_linux_for_ibm_z_systems_els | 10.2 | NVD |
| redhat enterprise_linux_for_ibm_z_systems_eus | 10.2 | NVD |
| redhat enterprise_linux_for_power_little_endian | 10.0, 10.2 | NVD |
| redhat enterprise_linux_for_power_little_endian_els | 10.2 | NVD |
| redhat enterprise_linux_for_power_little_endian_eus | 10.2 | NVD |
All scores
| redhat | 6.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | 7.3high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
| https://access.redhat.com/errata/RHSA-2026:47768 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:55855 | vendor-advisory | |
| https://access.redhat.com/security/cve/CVE-2026-15370 | vdb-entry, vendor-advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2499049 | issue-tracking, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-15370 changed 2026-11-24 | CVE Terms of Use |
| NVD | CVE-2026-15370 changed 2026-11-24 | Public domain |