# CVE-2026-3731: libssh SFTP Extension Name sftp.c sftp_extensions_get_data out-of-bounds

CVE-2026-3731 is fixed in 7 products on 1 platform, first by libssh-4 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm7, released March 8, 2026. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2026-3731
- Priority: High
- CVSS: 7.5 (Moderate)
- EPSS: 0.0072
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Mar 8, 2026
- Weakness: Out-of-bounds Read
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-3731

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libssh Debian 12.15 (bookworm) | 0.10.6-0+deb12u3 | [DEBIAN-CVE-2026-3731](https://patchblox.com/security/data/fix/linux/debian-cve-2026-3731.md) | Mar 8, 2026 |
| Linux | libssh Debian 13.5 (trixie) | 0.11.5-0+deb13u1 | [DEBIAN-CVE-2026-3731](https://patchblox.com/security/data/fix/linux/debian-cve-2026-3731.md) | Mar 8, 2026 |
| Linux | libssh Debian 14 | 0.12.0-1 | [DEBIAN-CVE-2026-3731](https://patchblox.com/security/data/fix/linux/debian-cve-2026-3731.md) | Mar 8, 2026 |
| Linux | libssh amzn 2023 | 0.10.6-1.amzn2023.0.7 | [ALAS2023-2026-1759](https://patchblox.com/security/data/fix/linux/alas2023-2026-1759.md) | May 25, 2026 |
| Linux | libssh opensuse-leap 15.6 | 0.9.8-150600.11.12.1 | [SUSE-SU-2026:1310-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-1310-1.md) | Apr 14, 2026 |
| Linux | libssh sles 15.7 | 0.9.8-150600.11.12.1 | [SUSE-SU-2026:1310-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-1310-1.md) | Apr 14, 2026 |
| Linux | libssh-4 Ubuntu 18.04.6 LTS (bionic) | 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm7 | [libssh-4 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm7](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libssh-4-0.8.0-20170825.94fa1e38-1ubuntu0.7-esm7.md) | Mar 8, 2026 |
| Linux | libssh-4 Ubuntu 20.04 LTS (focal) | 0.9.3-2ubuntu2.5+esm4 | [libssh-4 0.9.3-2ubuntu2.5+esm4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libssh-4-0.9.3-2ubuntu2.5-esm4.md) | Mar 8, 2026 |
| Linux | libssh-4 Ubuntu 22.04.1 LTS (jammy) | 0.9.6-2ubuntu0.22.04.7 | [libssh-4 0.9.6-2ubuntu0.22.04.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libssh-4-0.9.6-2ubuntu0.22.04.7.md) | Mar 8, 2026 |
| Linux | libssh-4 Ubuntu 24.04.5 LTS (noble) | 0.10.6-2ubuntu0.4 | [libssh-4 0.10.6-2ubuntu0.4](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libssh-4-0.10.6-2ubuntu0.4.md) | Mar 8, 2026 |
| Linux | libssh-4 Ubuntu 25.10 (questing) | 0.11.2-1ubuntu0.3 | [libssh-4 0.11.2-1ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-questing-libssh-4-0.11.2-1ubuntu0.3.md) | Mar 8, 2026 |
| Linux | libssh-4 Ubuntu 26.04.1 LTS (resolute) | 0.11.3-1ubuntu2 | [libssh-4 0.11.3-1ubuntu2](https://patchblox.com/security/data/fix/linux/ubuntu-resolute-libssh-4-0.11.3-1ubuntu2.md) | Mar 8, 2026 |
| Linux | libssh-config amzn 2023 | 0.10.6-1.amzn2023.0.7 | [ALAS2023-2026-1759](https://patchblox.com/security/data/fix/linux/alas2023-2026-1759.md) | May 25, 2026 |
| Linux | libssh-debuginfo amzn 2023 | 0.10.6-1.amzn2023.0.7 | [ALAS2023-2026-1759](https://patchblox.com/security/data/fix/linux/alas2023-2026-1759.md) | May 25, 2026 |
| Linux | libssh-debugsource amzn 2023 | 0.10.6-1.amzn2023.0.7 | [ALAS2023-2026-1759](https://patchblox.com/security/data/fix/linux/alas2023-2026-1759.md) | May 25, 2026 |
| Linux | libssh-devel amzn 2023 | 0.10.6-1.amzn2023.0.7 | [ALAS2023-2026-1759](https://patchblox.com/security/data/fix/linux/alas2023-2026-1759.md) | May 25, 2026 |
| Linux | libssh-gcrypt-4 Ubuntu 18.04.6 LTS (bionic) | 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm7 | [libssh-gcrypt-4 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm7](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libssh-gcrypt-4-0.8.0-20170825.94fa1e38-1ubuntu0.7-esm7.md) | Mar 8, 2026 |
| Linux | libssh-gcrypt-4 Ubuntu 20.04 LTS (focal) | 0.9.3-2ubuntu2.5+esm4 | [libssh-gcrypt-4 0.9.3-2ubuntu2.5+esm4](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libssh-gcrypt-4-0.9.3-2ubuntu2.5-esm4.md) | Mar 8, 2026 |
| Linux | libssh-gcrypt-4 Ubuntu 22.04.1 LTS (jammy) | 0.9.6-2ubuntu0.22.04.7 | [libssh-gcrypt-4 0.9.6-2ubuntu0.22.04.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libssh-gcrypt-4-0.9.6-2ubuntu0.22.04.7.md) | Mar 8, 2026 |
| Linux | libssh-gcrypt-4 Ubuntu 24.04.5 LTS (noble) | 0.10.6-2ubuntu0.4 | [libssh-gcrypt-4 0.10.6-2ubuntu0.4](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libssh-gcrypt-4-0.10.6-2ubuntu0.4.md) | Mar 8, 2026 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
