JLSEC-2026-1408: High severity julia/libssh_jll vulnerability
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/libssh_jllto a version that resolves this vulnerability.Fixed in 0.12.1+0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
The issue is relevant when libssh is used as an SFTP server and performs directory listings containing filenames controlled by an attacker. The affected software entry is julia/libssh_jll.
What does an attacker need to trigger the flaw?
An attacker must be able to cause the SFTP server to list a directory containing attacker-controlled, sufficiently long filenames. The supplied vector indicates local access, low privileges, and user interaction are also required.
What is the likely impact of successful exploitation?
A sufficiently long filename can overflow a fixed-size stack buffer during construction of the directory-listing longname field. This may crash the server or potentially allow code execution, with high confidentiality, integrity, and availability impact indicated by the supplied vector.