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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"libssh:libssh": [
"= 0.12.0",
">= 0.11.0, < 0.11.5"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-15370",
"id": "CVE-2026-15370",
"imported": "2026-11-21T02:43:39.188Z",
"modified": "2026-11-05T17:18:08.900Z",
"published": "2026-07-21T09:16:53.683Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-15370"
}
]
}