CVE-2026-3731: libssh SFTP Extension Name sftp.c sftp_extensions_get_data out-of-bounds
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.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2026-3731?
CVE-2026-3731 has been classified as a high-severity vulnerability due to its potential to cause out-of-bounds access.
How do I fix CVE-2026-3731?
To fix CVE-2026-3731, upgrade to libssh version 0.11.4 or later, which addresses the out-of-bounds vulnerability.
What components are affected by CVE-2026-3731?
CVE-2026-3731 affects the sftp_extensions_get_name and sftp_extensions_get_data functions in the SFTP extension of libssh.
What types of exploits are related to CVE-2026-3731?
Exploits related to CVE-2026-3731 can lead to denial of service or arbitrary code execution due to out-of-bounds memory access.
Which versions of libssh are vulnerable to CVE-2026-3731?
Libssh versions up to and including 0.11.3 are vulnerable to CVE-2026-3731.