VDB

CVE-2026-15370

CVE-2026-15370 PUBLISHED CVSS 6.7 MEDIUM

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.

PackageEcosystemFixed in
libsshChainguard0.12.1-r0
libssh-develerrata.rockylinux.org0.12.0-3.el10
libssh-configerrata.rockylinux.org0.12.0-3.el10
libssherrata.rockylinux.org0.12.0-3.el10
libssh-debugsourceerrata.rockylinux.org0.12.0-3.el10
libssh-debuginfoerrata.rockylinux.org0.12.0-3.el10
libsshAlpine0.12.1-r0
libsshWolfi0.12.1-r0
libsshlibssh0.11.5

Risk scores

CVSS 3.1
6.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
Red HatRed Hat Enterprise Linux 100:0.12.0-3.el10_2
Red HatRed Hat Hardened Images0.12.2-1.hum1
Red HatRed Hat Enterprise Linux 8
Red HatRed Hat Enterprise Linux 9
chainguardlibssh0
Red HatRed Hat Enterprise Linux 9
Red HatRed Hat Enterprise Linux 100:0.12.0-3.el10_2
chainguardlibssh2*
Red HatRed Hat Hardened Images
wolfilibssh2*
Red HatRed Hat Enterprise Linux 8
alpinelibssh0
Red HatRed Hat Hardened Images0.12.2-1.hum1
wolfilibssh0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›