# CVE-2026-15370: Libssh: libssh: stack buffer overflow in sftp server longname construction

- Severity: Medium 6.7 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-07-21T09:07:34.608Z
- Modified: 2026-11-24T11:17:12.523Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- libssh: no versions given (not affected: from 0:0.12.0-3.el10_2 before *)
- libssh-main: no versions given (not affected: from 0.12.2-1.hum1 before *)
- libssh libssh: from 0.11.0 before 0.11.5; 0.12.0
- redhat hardened_images: no versions given
- redhat 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

## Every score

- redhat: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`

## 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

- CVE List: [CVE-2026-15370](https://www.cve.org/CVERecord?id=CVE-2026-15370), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2026-15370](https://nvd.nist.gov/vuln/detail/CVE-2026-15370), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-15370 · Whole record: https://cve.day/CVE-2026-15370.json · Rebuilt by cve.day 2026-11-25T22:59:29.307Z
