{"id":"CVE-2026-15370","aliases":["CVE-2026-15370"],"related":[],"kind":"vulnerability","state":"published","title":"Libssh: libssh: stack buffer overflow in sftp server longname construction","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-07-21T09:07:34.608Z","modified":"2026-11-24T11:17:12.523Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":6.7,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":6.7,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"}],"cwes":["CWE-121"],"affected":[{"ranges":[{"type":"rpm","introduced":"0:0.12.0-3.el10_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"libssh","cpe":"cpe:/o:redhat:enterprise_linux:10.2","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0.12.2-1.hum1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Hardened Images","package":"libssh-main","cpe":"cpe:/a:redhat:hummingbird:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"libssh","cpe":"cpe:/o:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"libssh","cpe":"cpe:/o:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"0.11.0","fixed":"0.11.5"},{"status":"affected","version":"0.12.0"}],"vendor":"libssh","product":"libssh","cpe":"cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"redhat","product":"hardened_images","cpe":"cpe:2.3:a:redhat:hardened_images:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"},{"status":"affected","version":"10.0"},{"status":"affected","version":"10.0"},{"status":"affected","version":"10.2"},{"status":"affected","version":"10.2"}],"vendor":"redhat","product":"enterprise_linux","cpe":"cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.2"},{"status":"affected","version":"10.2"}],"vendor":"redhat","product":"enterprise_linux_for_els","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_els:10.2:*:*:*:*:*:arm64:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.2"},{"status":"affected","version":"10.2"}],"vendor":"redhat","product":"enterprise_linux_for_eus","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_eus:10.2:*:*:*:*:*:arm64:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"},{"status":"affected","version":"10.2"}],"vendor":"redhat","product":"enterprise_linux_for_ibm_z_systems","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.2"}],"vendor":"redhat","product":"enterprise_linux_for_ibm_z_systems_els","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems_els:10.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.2"}],"vendor":"redhat","product":"enterprise_linux_for_ibm_z_systems_eus","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems_eus:10.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"},{"status":"affected","version":"10.2"}],"vendor":"redhat","product":"enterprise_linux_for_power_little_endian","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.2"}],"vendor":"redhat","product":"enterprise_linux_for_power_little_endian_els","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian_els:10.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.2"}],"vendor":"redhat","product":"enterprise_linux_for_power_little_endian_eus","cpe":"cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian_eus:10.2:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:47768","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:55855","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-15370","tags":["vdb-entry","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2499049","tags":["issue-tracking","vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]}],"credits":["Red Hat would like to thank Tristan for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-22T17:49:15.900Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-15370","url":"https://www.cve.org/CVERecord?id=CVE-2026-15370","licence":"CVE Terms of Use","modified":"2026-11-24T10:23:26.902Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-15370","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-15370","licence":"Public domain","modified":"2026-11-24T11:17:12.523Z"}],"updatedAt":"2026-11-25T22:59:29.307Z","epss":{"score":0.00153,"percentile":0.04656,"date":"2026-12-01T12:00:22.000Z"}}