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",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0:0.12.0-3.el10_2"
},
{
"fixed": "0.12.2-1.hum1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "InverseAffectedRanges"
}
]
}
]
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.11.0"
},
{
"fixed": "0.11.5"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:libssh:libssh:0.12.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.12.0"
},
{
"last_affected": "0.12.0"
}
],
"source": "CPE_STRING"
}
]
}