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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-21 · Modified: 2026-11-24
- Aliases: RHSA-2026:47768, UBUNTU-CVE-2026-15370, DEBIAN-CVE-2026-15370, CGA-6v8r-wq5j-473c, CGA-fxc3-jv4v-2m2m, CGA-mhjv-9r6q-xmvp, CGA-v3r9-h7h9-6x84, CGA-vq3h-5wgv-pxc8, CGA-wrcr-q353-fm6q, ALPINE-CVE-2026-15370
- Record: https://cvemate.com/vulnerability/CVE-2026-15370 · JSON: https://cvemate.com/vulnerability/CVE-2026-15370/json

## Description

```text
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.
```

## Signals

- CVSS: 7.3 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.153%, percentile 4.611%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 23)

- alpine libssh (Alpine Linux): ≥ 0.11.0, \< 0.12.1-r0
- chainguard libssh (Chainguard): \< 0.12.1-r0
- chainguard libssh-dev (Chainguard): \< 0.12.1-r0
- chainguard libssh2 (Chainguard): All versions (No fix recorded)
- wolfi libssh (Wolfi): \< 0.12.1-r0
- wolfi libssh-dev (Wolfi): \< 0.12.1-r0
- wolfi libssh2 (Wolfi): All versions (No fix recorded)
- debian libssh (Debian): All versions (No fix recorded) \| \< 0.11.5-0+deb13u1 \| \< 0.12.1-1
- ubuntu libssh (Ubuntu): \< 0.11.3-1ubuntu2.1
- libssh libssh: ≥ 0.11.0, \< 0.11.5 \| 0.12.0
- 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
- redhat hardened\_images: na

## 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>
- <https://images.redhat.com/>
- <https://access.redhat.com/security/updates/classification/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_47768.json>
- <https://www.cve.org/CVERecord?id=CVE-2026-15370>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-15370>
- <https://ubuntu.com/security/CVE-2026-15370>
- <https://www.libssh.org/2026/07/21/libssh-0-12-1-and-0-11-5-security-releases/>
- <https://www.libssh.org/security/advisories/CVE-2026-15370.txt>
- <https://ubuntu.com/security/notices/USN-8699-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-15370>
- <https://security.alpinelinux.org/vuln/CVE-2026-15370>
- <https://access.redhat.com/downloads/content/package-browser/>
- <https://catalog.redhat.com/software/containers/>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/15xxx/CVE-2026-15370.json>

---

Data as of 2026-12-05T06:42:58.457Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
