CVE-2026-15370

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

State
Published
Severity
6.7 Medium
Published
Jul 21, 2026
Updated
Aug 17, 2026
Reserved
Jul 10, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.16.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:Hredhat

Weaknesses

  • CWE-121 Stack-based Buffer Overflow

Affected Products

ProductVersions
Red Hat Enterprise Linux 10Red Hat
  • 0:0.12.0-3.el10_2 and laterNot affected
Red Hat Hardened ImagesRed Hat
  • 0.12.2-1.hum1 and laterNot affected
Red Hat Enterprise Linux 8Red Hat
    Red Hat Enterprise Linux 9Red Hat

      References

      Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.