Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.9
Docker hardened images using libssh2 can corrupt client memory
published 10 days ago
Summary
The libssh2 library version up to 1.11.1, which is included in Docker hardened images, has a coding mistake that can cause memory to be freed twice when a client connects to a malicious SSH server. This can let an attacker corrupt the client’s memory and potentially take control of the process. Update libssh2 to the version that includes the fix or apply the vendor’s recommended patch as soon as possible.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Docker Hardened Images:Alpine:3.23 | docker hardened images | libssh2 | All versions |
| Docker Hardened Images:Alpine:3.24 | docker hardened images | libssh2 | All versions |
| Docker Hardened Images:Debian:13 | docker hardened images | libssh2 | All versions |
Original advisory text
libssh2 through 1.11.1, fixed in commit 5e47761, contains a double-free vulnerability in the sftp_open() function in…
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.
References
- https://scout.docker.com/v/DHI-xxhv-y64d-dmry-gch7 Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-66032 Vendor Advisory
- https://www.vulncheck.com/advisories/libssh2-double-free-heap-corruption-via-sft... Vendor Advisory
- https://github.com/libssh2/libssh2/pull/2180 Patch
- https://github.com/libssh2/libssh2/commit/5e4776146552d898b9c0e1b313cd093fa8dc92... Patch
- https://security.alpinelinux.org/vuln/CVE-2026-66032 Vendor Advisory
- https://alas.aws.amazon.com/AL2/ALAS-2026-3861.html Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-66034 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-66032 Vendor Advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2026-2056.html Vendor Advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2026-2064.html Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-66035 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-66033 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-53587 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-53585 Vendor Advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-53584 Vendor Advisory
- https://security-tracker.debian.org/tracker/CVE-2026-66032 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-66032 Vendor Advisory
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-66032 Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker full control (estimated)
Timeline
Published11 Nov 2026
Updated16 Nov 2026
First seen16 Nov 2026
Sources
DHI-xxhv-y64d-dmry-gch7 · OSV
Track software like this
Free during beta