{"id":"DHI-xxhv-y64d-dmry-gch7","summary":"libssh2 through 1.11.1, fixed in commit 5e47761, contains a double-free vulnerability in the sftp_open() function in…","details":"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.","modified":"2026-11-18T20:03:28.335585864Z","published":"2026-11-11T16:35:22Z","upstream":["CVE-2026-66032"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-xxhv-y64d-dmry-gch7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66032"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libssh2-double-free-heap-corruption-via-sftp-open"},{"type":"FIX","url":"https://github.com/libssh2/libssh2/pull/2180"},{"type":"FIX","url":"https://github.com/libssh2/libssh2/commit/5e4776146552d898b9c0e1b313cd093fa8dc92d0"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-66032"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2/ALAS-2026-3861.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-66034"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-66032"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-2056.html"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-2064.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-66035"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-66033"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-53587"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-53585"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-53584"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-66032"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-61752-0.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-61752-0.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-66032"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-66032"}],"affected":[{"package":{"name":"libssh2","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/libssh2"},"versions":["1.11.1-r1","1.11.1-r2","1.11.1-r3","1.11.1-r4","1.11.1-r5"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-xxhv-y64d-dmry-gch7.json"}},{"package":{"name":"libssh2","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/libssh2"},"versions":["1.11.1-r3","1.11.1-r4","1.11.1-r5"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-xxhv-y64d-dmry-gch7.json"}},{"package":{"name":"libssh2","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/libssh2"},"versions":["1.11.1-1+deb13u1+dhi1","1.11.1-1+deb13u1+dhi2","1.11.1-1+deb13u2+dhi0","1.11.1-1+dhi+deb13u1+dhi2","1.11.1-1+dhi+deb13u2+dhi0"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-xxhv-y64d-dmry-gch7.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}