CVE-2026-3731: libssh · Out-of-bounds Read
Affects libsshSource CVE Database V5
Not known to be exploited · CVSS 6.9 Medium.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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:XExploitation evidence
Disclosed: evidence found.
CVE published 9 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| libssh | Affected
| Fixed in– |
GitHublibssh/libsshpkg:github/libssh/libsshOther threats | Affected
| Fixed in– |
CPE configurations (1)
cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Organizations should immediately upgrade libssh to versions 0.11.4 or 0.12.0 to remediate this vulnerability. Beyond upgrading, administrators should audit their environments to identify all instances of libssh usage, including embedded devices and network appliances, to ensure comprehensive patching. Employ network-level protections such as firewall rules to restrict SSH/SFTP access to trusted IP ranges, reducing exposure to remote attacks. Monitoring and logging SSH/SFTP traffic for anomalous behavior may help detect exploitation attempts. For environments where immediate upgrading is not feasible, consider disabling or restricting SFTP extensions if possible, or deploying application-layer proxies that can filter malformed requests. Regularly review vendor advisories for updates or additional patches related to libssh. Finally, incorporate this vulnerability into vulnerability management and incident response plans to ensure timely detection and remediation.
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.
References
- vuldb.com (opens in a new tab)
- vuldb.com (opens in a new tab)
- vuldb.com (opens in a new tab)
- libssh.org/security/advisories/libssh-2026-sftp-extensions.txt (opens in a new tab)
- gitlab.com/libssh/libssh-mirror/-/commit/855a0853ad3abd4a6cd85ce06fce6d8d4c7a0b60 (opens in a new tab)
- libssh.org/files/0.12/libssh-0.12.0.tar.xz (opens in a new tab)