Description
A weakness has been identified in libssh up to 0.11.3. The impacted element is the function sftp_extensions_get_name/sftp_extensions_get_data of the file src/sftp.c of the component SFTP Extension Name Handler. Executing a manipulation of the argument idx can lead to out-of-bounds read. The attack may be performed from remote. Upgrading to version 0.11.4 and 0.12.0 is sufficient to resolve this issue. This patch is called 855a0853ad3abd4a6cd85ce06fce6d8d4c7a0b60. You should upgrade the affected component.
Problem types
Timeline
| 2026-03-07: | Advisory disclosed |
| 2026-03-07: | VulDB entry created |
| 2026-03-07: | VulDB entry last update |
References
vuldb.com/?id.349709 (VDB-349709 | libssh SFTP Extension Name sftp.c sftp_extensions_get_data out-of-bounds)
vuldb.com/?ctiid.349709 (VDB-349709 | CTI Indicators (IOB, IOC, IOA))
vuldb.com/?submit.767120 (Submit #767120 | libssh.org libssh libssh < 0.11.4; < 0.12.0 Out-of-Bounds Read)
www.libssh.org/...advisories/libssh-2026-sftp-extensions.txt
gitlab.com/...ommit/855a0853ad3abd4a6cd85ce06fce6d8d4c7a0b60
www.libssh.org/files/0.12/libssh-0.12.0.tar.xz