{"id":"CVE-2026-15370","summary":"Libssh: libssh: stack buffer overflow in sftp server longname construction","details":"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.","modified":"2026-09-24T03:45:14.527467452Z","published":"2026-07-21T09:07:34.608Z","related":["ALSA-2026:55855","SUSE-SU-2026:22940-1","SUSE-SU-2026:22948-1","SUSE-SU-2026:22956-1","openSUSE-SU-2026:11377-1","openSUSE-SU-2026:21444-1"],"database_specific":{"cna_assigner":"redhat","cwe_ids":["CWE-121"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/15xxx/CVE-2026-15370.json"},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:47768"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:55855"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-15370"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/15xxx/CVE-2026-15370.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-15370"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2499049"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.com/libssh/libssh-mirror","events":[{"introduced":"894e07aede659d26e13569ac9987191b81bc359d"},{"fixed":"a09fdd00416e53b6ed436df6ff14339a4f884601"},{"introduced":"50313883f3a077458cde4ea95bf46bfeb0771b34"},{"last_affected":"50313883f3a077458cde4ea95bf46bfeb0771b34"}],"database_specific":{"source":["CPE_RANGE","CPE_STRING"],"cpe":["cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*","cpe:2.3:a:libssh:libssh:0.12.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"0.11.0"},{"fixed":"0.11.5"},{"introduced":"0.12.0"},{"last_affected":"0.12.0"}]}}],"versions":["0.12.0","libssh-0.11.4","libssh-0.12.0","libssh-0.11.3","libssh-0.11.2","libssh-0.11.1","libssh-0.11.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-15370.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H"}]}