Buffer overflow in Libssh
CVE-2026-3731
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.007, 54.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Libssh
- Libssh — versions 0.11.0, 0.11.1, 0.11.2
Weakness classification (CWE)
References
- VDB-349709 | libssh SFTP Extension Name sftp.c sftp_extensions_get_data out-of-bounds (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-349709 | CTI Indicators (IOB, IOC, IOA) (signature, Permissions Required, permissions-required, VDB Entry)
- Submit #767120 | libssh.org libssh libssh < 0.11.4; < 0.12.0 Out-of-Bounds Read (Third Party Advisory, VDB Entry, third-party-advisory)
- www.libssh.org/security/advisories/libssh-2026-sftp-extensions.txt (related, Product)
- gitlab.com/libssh/libssh-mirror/-/commit/855a0853ad3abd4a6cd85ce06fce6d8d4c7a0b… (Patch, patch)
- www.libssh.org/files/0.12/libssh-0.12.0.tar.xz (Patch, Third Party Advisory, patch)