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
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
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.7 Medium | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H | redhat |
Weaknesses
- CWE-121 Stack-based Buffer Overflow
Affected Products
| Product | Versions |
|---|---|
Red Hat Enterprise Linux 10Red Hat |
|
Red Hat Hardened ImagesRed Hat |
|
Red Hat Enterprise Linux 8Red Hat | |
Red Hat Enterprise Linux 9Red Hat |
References
- RHSA-2026:47768vendor-advisory
- RHSA-2026:55855vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-15370vdb-entry
- RHBZ#2499049issue-tracking
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.