libssh SFTP Extension Name sftp.c sftp_extensions_get_data out-of-bounds
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 1 fixed, 6 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | libssh | 0.11.0; 0.11.1; 0.11.2; 0.11.3 | 0.11.4, 0.12.0 | Patch available | CNA |
- libssh Vendor— Affected 0.11.0; 0.11.1; 0.11.2; 0.11.3 Fixed in 0.11.4, 0.12.0 Patch available CNA
Remediation
- Fix · CNA libssh Fixed in 0.11.4, 0.12.0
Red Hat 1 advisory
- RHSA-2026:7067 Released 2026-04-08 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images libssh-0.12.0-1.1.hum1@aarch64, libssh-0.12.0-1.1.hum1@src, libssh-0.12.0-1.1.hum1@x86_64 +4
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 6 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 7 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat Hardened Images | Fixed | RHSA-2026:7067 |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-3731
- 2026-10-03 Alias added: GHSA-wg5h-wgv3-pgqh
References
More Libssh vulnerabilities
- TI-2018-07745 Improper authentication in [UNKNOWN] libssh CVSS 3.0CRITICAL 9.1
- TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
- TI-2012-03902 Multiple integer overflows in libssh before 0.5.3 allow remote attackers to cause a… CVSS 2.0HIGH 7.5
- TI-2019-11093 OS command injection in Red Hat libssh CVSS 3.1HIGH 8.8
- TI-2026-00732 Libssh: libssh: denial of service via zero-length input in ssh_get_hexa() CVSS 3.1HIGH 8.2
- TI-2012-03900 Multiple buffer overflows in libssh before 0.5.3 allow remote attackers to cause a denial… CVSS 2.0HIGH 7.5
Sources
- CVE-2026-3731 · CVE Program
- CVE-2026-3731 · NVD
- FIRST EPSS
- GHSA-wg5h-wgv3-pgqh · GitHub Advisory Database · CC BY 4.0
- CVE-2026-3731 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences