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.
{
"cna_assigner": "redhat",
"cwe_ids": [
"CWE-121"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/15xxx/CVE-2026-15370.json"
}{
"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"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING"
]
}