Buffer overflow in Libssh

CVE-2026-15370

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.

Vulnerability class: Buffer Overflow

EPSS: 0.002 (4.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.7 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-15370?
CVE-2026-15370 is a medium-severity vulnerability in Libssh, classified under Stack-based Buffer Overflow. CVSS score: 6.7/10. Published 2026-07-21.
How severe is CVE-2026-15370?
Medium severity. CVSS v3 base score is 6.7 out of 10.