{"id":"DHI-zcku-d33u-ktqs-ucf6","summary":"libssh2 through 1.11.1 reads an attacker-controlled 32-bit attribute count from a publickey-subsystem response and uses…","details":"libssh2 through 1.11.1 reads an attacker-controlled 32-bit attribute count from a publickey-subsystem response and uses it in the allocation num_attrs * sizeof(libssh2_publickey_attribute) without bounds checking, so on 32-bit platforms the multiplication overflows to an undersized buffer. A malicious SSH server can then drive the attribute-parsing loop to write past the allocation, causing a heap buffer overflow in a connecting libssh2 client.","modified":"2026-11-18T20:03:33.694856864Z","published":"2026-11-11T16:35:22Z","upstream":["CVE-2026-58050"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-zcku-d33u-ktqs-ucf6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58050"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libssh2-integer-overflow-in-publickey-subsystem-attribute-allocation"},{"type":"WEB","url":"https://github.com/libssh2/libssh2/blob/master/src/publickey.c"},{"type":"WEB","url":"https://github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-58050"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2/ALAS-2026-3813.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-58051"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-58050"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-1966.html"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-58050"},{"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://access.redhat.com/security/cve/CVE-2026-58050"},{"type":"FIX","url":"https://www.cve.org/CVERecord?id=CVE-2026-58050"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-58050"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-58050"},{"type":"FIX","url":"https://github.com/libssh2/libssh2/pull/2205#discussion_r3523193089"}],"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-zcku-d33u-ktqs-ucf6.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-zcku-d33u-ktqs-ucf6.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-zcku-d33u-ktqs-ucf6.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/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"}]}