{"id":"CVE-2026-58051","published":"2026-06-28T01:32:54Z","modified":"2026-11-10T12:48:59Z","title":"libssh2 - Free of Uninitialized Pointer in publickey List Cleanup","vendor":"libssh2","product":"libssh2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00479,"percentile":0.33741,"provenance":"source"},"cwes":[{"id":"CWE-908","name":"Use of Uninitialized Resource"}],"references":[{"url":"https://github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc","tags":["exploit","third-party-advisory"]},{"url":"https://github.com/libssh2/libssh2/blob/master/src/publickey.c","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/libssh2-free-of-uninitialized-pointer-in-publickey-list-cleanup","tags":["third-party-advisory"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":6.75},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"libssh2","affectedVersions":[{"vendor":"libssh2","product":"libssh2","versions":["<= 1.11.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-29T12:49:30.651264Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-39971","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc"]}