CVE-2026-15370 PUBLISHED

Libssh: libssh: stack buffer overflow in sftp server longname construction

Assigner: redhat
Reserved: 10.07.2026 Published: 21.07.2026 Updated: 21.07.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.

Metrics

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

Product Status

Vendor Red Hat
Product Red Hat Enterprise Linux 10
Versions Default: affected
Vendor Red Hat
Product Red Hat Enterprise Linux 8
Versions Default: unaffected
Vendor Red Hat
Product Red Hat Enterprise Linux 9
Versions Default: unaffected
Vendor Red Hat
Product Red Hat Hardened Images
Versions Default: affected

Workarounds

No workaround available.

Credits

  • Red Hat would like to thank Tristan for reporting this issue.

References

Problem Types

  • Stack-based Buffer Overflow CWE