{"id":"DHI-vs3y-ckx5-yfiz-zbor","summary":"libssh2 through 1.11.1 grows its publickey list with SSH2_REALLOC but does not zero-initialize new entries before…","details":"libssh2 through 1.11.1 grows its publickey list with SSH2_REALLOC but does not zero-initialize new entries before parsing populates them, so a parse failure reaching the cleanup path leaves libssh2_publickey_list_free operating on an uninitialized entry. A malicious SSH server offering the publickey subsystem can use a malformed response to make cleanup free an uninitialized, attacker-influenceable attrs pointer in a connecting libssh2 client.","modified":"2026-11-16T02:36:21.637327450Z","published":"2026-11-11T16:35:22Z","upstream":["CVE-2026-58051"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-vs3y-ckx5-yfiz-zbor"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58051"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libssh2-free-of-uninitialized-pointer-in-publickey-list-cleanup"},{"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-58051"},{"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-58051"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-58051"},{"type":"FIX","url":"https://www.cve.org/CVERecord?id=CVE-2026-58051"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-58051"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-58051"},{"type":"FIX","url":"https://github.com/libssh2/libssh2/pull/2202"}],"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-vs3y-ckx5-yfiz-zbor.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-vs3y-ckx5-yfiz-zbor.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-vs3y-ckx5-yfiz-zbor.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:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/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"}]}