{"id":"DHI-kiao-grth-pn7h-2zpu","summary":"libssh2 through 1.11.1, fixed in commit 42e33d8, contains a pre-authentication heap buffer overflow vulnerability that…","details":"libssh2 through 1.11.1, fixed in commit 42e33d8, contains a pre-authentication heap buffer overflow vulnerability that allows a malicious SSH server to corrupt heap metadata in any connecting client by sending a packet with a packet_length smaller than the cipher's block size during Encrypt-then-MAC cipher negotiation. In the fullpacket() function in src/transport.c, the ETM path allocates a buffer of packet_length bytes but copies blocksize minus one bytes via memcpy, causing an overflow that on 32-bit glibc writes attacker-controlled bytes into an adjacent chunk's SIZE field, enabling tcache bin confusion, overlapping live objects, and function pointer overwrite during the session handshake before authentication.","modified":"2026-11-16T02:35:41.419804786Z","published":"2026-11-11T16:35:22Z","upstream":["CVE-2026-66035"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-kiao-grth-pn7h-2zpu"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66035"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libssh2-heap-buffer-overflow-via-etm-cipher-negotiation"},{"type":"FIX","url":"https://github.com/libssh2/libssh2/pull/2198"},{"type":"FIX","url":"https://github.com/libssh2/libssh2/commit/42e33d81577ed4b95d4b4f6f845e5ee8efe5eeb4"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-66035"},{"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-66034"},{"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-66032"},{"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-66035"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-66035"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-66035"}],"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-kiao-grth-pn7h-2zpu.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":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-kiao-grth-pn7h-2zpu.json","owner_kind":"HSP"}},{"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-kiao-grth-pn7h-2zpu.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/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"}]}