Vulnerability · Published Mar 8, 2026 · Assigned by VulDB
CVE-2026-3731libssh SFTP Extension Name sftp.c sftp_extensions_get_data out-of-bounds
Medium 5.3
In plain English
A medium-severity out-of-bounds read in libssh. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libssh | 0.10.6-0+deb12u3 | DEBIAN-CVE-2026-3731 |
| Debian:13 | libssh | 0.11.5-0+deb13u1 | DEBIAN-CVE-2026-3731 |
| Debian:14 | libssh | 0.12.0-1 | DEBIAN-CVE-2026-3731 |
| Ubuntu:22.04:LTS | libssh | 0.9.6-2ubuntu0.22.04.7 | USN-8093-1 |
| Ubuntu:22.04:LTS | libssh | 0.9.6-2ubuntu0.22.04.7 | UBUNTU-CVE-2026-3731 |
| Ubuntu:24.04:LTS | libssh | 0.10.6-2ubuntu0.4 | USN-8093-1 |
| Ubuntu:24.04:LTS | libssh | 0.10.6-2ubuntu0.4 | UBUNTU-CVE-2026-3731 |
| Ubuntu:25.10 | libssh | 0.11.2-1ubuntu0.3 | USN-8093-1 |
| Ubuntu:25.10 | libssh | 0.11.2-1ubuntu0.3 | UBUNTU-CVE-2026-3731 |
| Ubuntu:26.04:LTS | libssh | 0.11.3-1ubuntu2 | UBUNTU-CVE-2026-3731 |
| Ubuntu:26.04:LTS | libssh | 0.11.3-1ubuntu2 | USN-8093-2 |
Affected products (as reported)
Weakness: CWE-125, CWE-119 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C
References
- VDB-349709 | libssh SFTP Extension Name sftp.c sftp_extensions_get_data out-of-bounds vdb-entry, technical-description
- VDB-349709 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #767120 | libssh.org libssh libssh < 0.11.4; < 0.12.0 Out-of-Bounds Read third-party-advisory
- https://www.libssh.org/security/advisories/libssh-2026-sftp-extensions.txt related
- https://gitlab.com/libssh/libssh-mirror/-/commit/855a0853ad3abd4a6cd85ce06fce6d8d4c7a0b60 patch
- https://www.libssh.org/files/0.12/libssh-0.12.0.tar.xz patch