CVE-2026-15370
JSON

6.7medium

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

Severity
6.7medium CVSS:3.1 by redhat
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

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.

Affected

Product or packageVersionsReported by
libsshNot specified
Not affected: from 0:0.12.0-3.el10_2 before *
CVE List
libssh-mainNot specified
Not affected: from 0.12.2-1.hum1 before *
CVE List
libssh libsshfrom 0.11.0 before 0.11.5, 0.12.0NVD
redhat hardened_imagesNot specifiedNVD
redhat enterprise_linux10.0, 10.2NVD
redhat enterprise_linux_for_els10.2NVD
redhat enterprise_linux_for_eus10.2NVD
redhat enterprise_linux_for_ibm_z_systems10.0, 10.2NVD
redhat enterprise_linux_for_ibm_z_systems_els10.2NVD
redhat enterprise_linux_for_ibm_z_systems_eus10.2NVD
redhat enterprise_linux_for_power_little_endian10.0, 10.2NVD
redhat enterprise_linux_for_power_little_endian_els10.2NVD

All scores

redhat6.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD7.3high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-121

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-15370 changed 2026-11-24CVE Terms of Use
NVDCVE-2026-15370 changed 2026-11-24Public domain