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
- Libssh
- Red Hat Enterprise Linux 10 — versions 0:0.12.0-3.el10_2
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Hardened Images — versions 0.12.2-1.hum1
- Redhat Enterprise_linux — versions 10.0
- Redhat Hardened_images
Weakness classification (CWE)
References
- secalert@redhat.com (x_refsource_REDHAT, vdb-entry, Vendor Advisory)
- secalert@redhat.com (x_refsource_REDHAT, issue-tracking, Issue Tracking, Vendor Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory, Vendor Advisory)
- secalert@redhat.com (x_refsource_REDHAT, vendor-advisory)
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.