CVE-2026-3731 Details
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.
A buffer overrun vulnerability has been identified in libssh versions prior to 0.11.4 and 0.12.0. The issue arises in the SFTP extension name handler, specifically within the functions 'sftp_extensions_get_name' and 'sftp_extensions_get_data' in 'src/sftp.c'. The vulnerability allows for an out-of-bounds read by manipulating the 'idx' argument, which can be exploited remotely. While the functions are used internally by libssh without causing buffer overruns, they can be called by end-user applications, potentially leading to crashes or the unintended use of uninitialized data.
Users are advised to upgrade to libssh version 0.11.4 or 0.12.0. Patches are also available for this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gitlab.com/libssh/libssh-mirror/-/commit/855a0853ad3abd4a6cd85ce06fce6d8d4c7a0b60 | [email protected] | Patch |
| https://vuldb.com/?ctiid.349709 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.349709 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.767120 | [email protected] | Third Party AdvisoryVDB Entry |
| https://www.libssh.org/files/0.12/libssh-0.12.0.tar.xz | [email protected] | PatchThird Party Advisory |
| https://www.libssh.org/security/advisories/libssh-2026-sftp-extensions.txt | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libssh libssh | <= 0.11.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 12, 2026 | Reanalysis | [email protected] |
| Mar 9, 2026 | Initial Analysis | [email protected] |
| Mar 8, 2026 | New CVE Received | [email protected] |