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

- Severity: Medium 6.9 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 55% of CVEs (2026-12-01)
- Published: 2026-03-08T10:32:19.482Z
- Modified: 2026-06-17T10:44:05.853Z
- Weaknesses: CWE-119, CWE-125
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulDB

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

(As written by CVE List.)

## Affected

- libssh: 0.11.0; 0.11.1; 0.11.2; 0.11.3 (not affected: 0.11.4; 0.12.0)
- libssh libssh: up to 0.11.3

## Every score

- VulDB: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X`
- VulDB: CVSS:3.1 5.3 Medium `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`
- VulDB: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:X/RL:O/RC:C`
- VulDB: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P/E:ND/RL:OF/RC:C`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://vuldb.com/?id.349709> (technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.349709> (permissions-required, signature, vdb-entry)
- <https://vuldb.com/?submit.767120> (third-party-advisory, vdb-entry)
- <https://www.libssh.org/security/advisories/libssh-2026-sftp-extensions.txt> (product, related)
- <https://gitlab.com/libssh/libssh-mirror/-/commit/855a0853ad3abd4a6cd85ce06fce6d8d4c7a0b60> (patch)
- <https://www.libssh.org/files/0.12/libssh-0.12.0.tar.xz> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2026-3731](https://www.cve.org/CVERecord?id=CVE-2026-3731), CVE Terms of Use, modified 2026-03-11
- NVD: [CVE-2026-3731](https://nvd.nist.gov/vuln/detail/CVE-2026-3731), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-3731 · Whole record: https://cve.day/CVE-2026-3731.json · Rebuilt by cve.day 2026-11-25T22:59:15.507Z
