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.
- CVSS:
- 7.3 (nvd)
- Vector:
- CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- EPSS:
- 0.17% (percentile 6.0)
- CWE:
- CWE-121
- Published:
- Modified:
- First seen:
- NVD status:
- Analyzed