CVE-2026-66032
libssh2: libssh2: Arbitrary code execution via double-free in SFTP session
Overview
Description
libssh2 through 1.11.1, fixed in commit 5e47761, contains a double-free vulnerability in the sftp_open() function in src/sftp.c that allows a malicious SSH server to corrupt the heap of any authenticated client opening an SFTP session. When a server responds to SSH_FXP_OPEN with SSH_FXP_STATUS containing FX_OK, the response data buffer is freed, and if a subsequent sftp_packet_require() call returns a specific error such as LIBSSH2_ERROR_CHANNEL_PACKET_EXCEEDED, the same pointer is freed a second time, enabling tcache dup conditions on glibc systems that allow overlapping allocations and function pointer overwrites.
Source: OX vulnerability database
Severity
8.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: CWE-415
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | LibSSH2_jll | <1.11.104+0 | 1.11.104+0 |
Open a package to see all its vulnerabilities.
Operating systems · 35 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | libssh2 | 0:1.11.1-5.azl3 |
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | libssh2 +2 | 1.8.0-4.0.1.el7_9.1 |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | libssh2 +1 | 1.11.1-6.ph5 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | libssh2 +1 | 0:1.8.0-4.el7_9.2 | RHSA-2026:61752 |
SUSE Linux Enterprise 6 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | libssh2-1 +2 | 1.11.0-29.18.1 | SUSE-SU-2026:3525-1 |
| 15.4 | libssh2-1 +2 | 1.11.0-150200.9.8.1 | SUSE-SU-2026:3526-1 |
| 15.5 | libssh2-1 +2 | 1.11.0-150200.9.8.1 | SUSE-SU-2026:3526-1 |
| 15.6 | libssh2-1 +2 | 1.11.0-150600.20.6.1 | SUSE-SU-2026:3541-1 |
| 15.7 | libssh2-1 +2 | 1.11.0-150600.20.6.1 | SUSE-SU-2026:3541-1 |
| 16.0 | libssh2-1 +1 | 1.11.1-160000.5.1 | SUSE-SU-2026:23214-1 |
SUSE Linux Enterprise Micro 6 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | libssh2-1 | 1.11.0-150200.9.8.1 | SUSE-SU-2026:3526-1 |
| 5.4 | libssh2-1 | 1.11.0-150200.9.8.1 | SUSE-SU-2026:3526-1 |
| 5.5 | libssh2-1 | 1.11.0-150200.9.8.1 | SUSE-SU-2026:3526-1 |
| 6.0 | libssh2-1 | 1.11.0-4.1 | SUSE-SU-2026:23245-1 |
| 6.1 | libssh2-1 | 1.11.0-slfo.1.1_2.1 | SUSE-SU-2026:23187-1 |
| 6.2 | libssh2-1 | 1.11.1-160000.5.1 | SUSE-SU-2026:23049-1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | libssh2 | 1.11.1-r3 |
| 3.23 | libssh2 | 1.11.1-r4 |
| 3.24 | libssh2 | 1.11.1-r4 |
| edge | libssh2 | 1.11.1-r4 |
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | cargo-c +2 | 0.10.21-1.amzn2023.0.1 |
| 2023 | libssh2 +4 | 1.10.0-1.amzn2023.0.6 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | libssh2 | affected |
| 12 | libssh2 | 1.10.0-3+deb12u1 |
| 13 | libssh2 | 1.11.1-1+deb13u2 |
| 14 | libssh2 | 1.11.1-5 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| libssh2 | 1.10.0-3+deb12u1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libssh2-1 +2 | 1.11.1-4.1 | openSUSE-SU-2026:11454-1 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | libssh2-1 +1 | 1.11.1-160000.5.1 | openSUSE-SU-2026:21549-1 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | libssh2 +1 | 1.8.0-4.el7_9.1+sp999 |
ubuntu 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | libssh2 | 1.8.0-1ubuntu0.1+esm1 |
| 20.04-ESM | libssh2 | 1.8.0-2.1ubuntu0.1+esm1 |
| 22.04 | libssh2 | 1.10.0-3ubuntu0.1 |
| 24.04 | libssh2 | 1.11.0-4.1ubuntu0.24.04.4 |
| 26.04 | libssh2 | 1.11.1-1ubuntu0.26.04.4 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-66032
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-457936.html
- github.com https://github.com/advisories/GHSA-83r8-6c29-8gwr
- github.com https://github.com/libssh2/libssh2/commit/5e4776146552d898b9c0e1b313cd093fa8dc92d0
- github.com https://github.com/libssh2/libssh2/pull/2180
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-66032.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-61752-0.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-66032
- ubuntu.com https://ubuntu.com/security/notices/USN-8722-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8799-1
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.