CVE-2026-15370
Libssh: libssh: stack buffer overflow in sftp server longname construction
Reported by redhat · Published July 21, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libssh | Chainguard | 0.12.1-r0 |
| libssh-devel | errata.rockylinux.org | 0.12.0-3.el10 |
| libssh-config | errata.rockylinux.org | 0.12.0-3.el10 |
| libssh | errata.rockylinux.org | 0.12.0-3.el10 |
| libssh-debugsource | errata.rockylinux.org | 0.12.0-3.el10 |
| libssh-debuginfo | errata.rockylinux.org | 0.12.0-3.el10 |
| libssh | Alpine | 0.12.1-r0 |
| libssh | Wolfi | 0.12.1-r0 |
| libssh | libssh | 0.11.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | 0:0.12.0-3.el10_2 |
| Red Hat | Red Hat Hardened Images | 0.12.2-1.hum1 |
| Red Hat | Red Hat Enterprise Linux 8 | |
| Red Hat | Red Hat Enterprise Linux 9 | |
| chainguard | libssh | 0 |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat Enterprise Linux 10 | 0:0.12.0-3.el10_2 |
| chainguard | libssh2 | * |
| Red Hat | Red Hat Hardened Images | |
| wolfi | libssh2 | * |
| Red Hat | Red Hat Enterprise Linux 8 | |
| alpine | libssh | 0 |
| Red Hat | Red Hat Hardened Images | 0.12.2-1.hum1 |
| wolfi | libssh | 0 |
Timeline
- Jul 20, 2026 CVE Published
- Jul 21, 2026 EPSS Score (10 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (5 in total, the first dated here)
- Aug 12, 2026 Security Advisory (5 in total, the first dated here)
- Sep 16, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-15370
vulnetix vdb fixes CVE-2026-15370
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-15370/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2026:47768 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:55855 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
- RHBZ#2499049 issue-trackingx_refsource_REDHAT