# CVE-2026-66032: libssh2 Double-Free Heap Corruption via sftp\_open()

- Priority: **Routine**
- Reason: Not severe (CVSS 8.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-24 · Modified: 2026-11-10
- Aliases: UBUNTU-CVE-2026-66032, DEBIAN-CVE-2026-66032, CGA-3xq4-995h-jpcq, CGA-55vv-gcc7-whgh, CGA-65x3-c634-w2w8, CGA-fchc-jxhc-q664, CGA-gq7j-g8cx-5rm3, CGA-rx29-xhvp-gfr9, ALPINE-CVE-2026-66032
- Record: https://cvemate.com/vulnerability/CVE-2026-66032 · JSON: https://cvemate.com/vulnerability/CVE-2026-66032/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.582%, percentile 49.268%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine libssh2 (Alpine Linux): \< 1.11.1-r3 \| \< 1.11.1-r4
- chainguard libssh2 (Chainguard): All versions (No fix recorded)
- chainguard libssh2-dev (Chainguard): All versions (No fix recorded)
- chainguard libssh2-doc (Chainguard): All versions (No fix recorded)
- wolfi libssh2 (Wolfi): All versions (No fix recorded)
- wolfi libssh2-dev (Wolfi): All versions (No fix recorded)
- wolfi libssh2-doc (Wolfi): All versions (No fix recorded)
- debian libssh2 (Debian): \< 1.10.0-3+deb12u1 \| \< 1.11.1-1+deb13u2 \| \< 1.11.1-5
- ubuntu libssh2 (Ubuntu): \< 1.4.3-2ubuntu0.2+esm4 \| \< 1.5.0-2ubuntu0.1+esm3 \| \< 1.8.0-1ubuntu0.1+esm1 \| \< 1.8.0-2.1ubuntu0.1+esm1 \| \< 1.10.0-3ubuntu0.1 \| \< 1.11.0-4.1ubuntu0.24.04.4 \| \< 1.11.1-1ubuntu0.26.04.4
- libssh2 libssh2: ≤ 1.11.1

## References

- <https://github.com/libssh2/libssh2/pull/2180>
- <https://github.com/libssh2/libssh2/commit/5e4776146552d898b9c0e1b313cd093fa8dc92d0>
- <https://www.vulncheck.com/advisories/libssh2-double-free-heap-corruption-via-sftp-open>
- <https://ubuntu.com/security/CVE-2026-66032>
- <https://www.cve.org/CVERecord?id=CVE-2026-66032>
- <https://ubuntu.com/security/notices/USN-8722-1>
- <https://ubuntu.com/security/notices/USN-8799-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-66032>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66032.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-66032>
- <https://github.com/libssh2/libssh2>
- <https://security.alpinelinux.org/vuln/CVE-2026-66032>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

---

Data as of 2026-12-05T06:59:50.533Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
