CVE-2026-3731libssh 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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libssh | Fixed | 0.11.3-1ubuntu2 | UBUNTU-CVE-2026-3731 |
| Ubuntu 25.10 | libssh | Fixed | 0.11.2-1ubuntu0.3 | UBUNTU-CVE-2026-3731 |
| Ubuntu 24.04 | libssh | Fixed | 0.10.6-2ubuntu0.4 | UBUNTU-CVE-2026-3731 |
| Ubuntu 22.04 | libssh | Fixed | 0.9.6-2ubuntu0.22.04.7 | UBUNTU-CVE-2026-3731 |
| Ubuntu 20.04 | libssh | Fix pending | 0.9.3-2ubuntu2.5+esm4 (Ubuntu Pro) | UBUNTU-CVE-2026-3731 |
| Ubuntu 18.04 | libssh | Fix pending | 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm7 (Ubuntu Pro) | UBUNTU-CVE-2026-3731 |
| Ubuntu 16.04 | libssh | Fix pending | 0.6.3-4.3ubuntu0.6+esm5 (Ubuntu Pro) | UBUNTU-CVE-2026-3731 |
| Debian 14 | libssh | Fixed | 0.12.0-1 | DEBIAN-CVE-2026-3731 |
| Debian 13 | libssh | Fixed | 0.11.5-0+deb13u1 | DEBIAN-CVE-2026-3731 |
| Debian 12 | libssh | Fixed | 0.10.6-0+deb12u3 | DEBIAN-CVE-2026-3731 |
| Red Hat Enterprise Linux 10 | libssh | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libssh-config | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libssh-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libssh | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libssh-config | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libssh-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libssh | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libssh-config | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libssh-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libssh2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libssh2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libssh2-docs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libssh2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libssh2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libssh2-docs | Fix pending Fix deferred |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libssh: affected: 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.11.4 not affected, 0.12.0 not affected
Vendor advisories:
- https://gitlab.com/libssh/libssh-mirror/-/commit/855a0853ad3abd4a6cd85ce06fce6d8d4c7a0b60 (patch)
- https://www.libssh.org/files/0.12/libssh-0.12.0.tar.xz (patch)
References
- https://vuldb.com/?id.349709
- https://vuldb.com/?ctiid.349709
- https://vuldb.com/?submit.767120
- https://www.libssh.org/security/advisories/libssh-2026-sftp-extensions.txt
- https://gitlab.com/libssh/libssh-mirror/-/commit/855a0853ad3abd4a6cd85ce06fce6d8d4c7a0b60
- https://www.libssh.org/files/0.12/libssh-0.12.0.tar.xz
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.