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.
{
"sources": [
{
"modified": "2026-06-30T17:42:04.473Z",
"database_specific": {
"status": "Analyzed"
},
"id": "CVE-2026-58051",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-58051",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-58051",
"imported": "2026-07-17T22:21:43.694Z",
"published": "2026-06-28T02:16:32.153Z"
},
{
"modified": "2026-06-28T03:33:40Z",
"html_url": "https://github.com/advisories/GHSA-c5f3-hwj2-xp5p",
"id": "GHSA-c5f3-hwj2-xp5p",
"url": "https://api.github.com/advisories/GHSA-c5f3-hwj2-xp5p",
"imported": "2026-07-17T22:21:43.936Z",
"published": "2026-06-28T03:33:40Z"
},
{
"modified": "2026-06-29T12:50:00Z",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-39971",
"id": "EUVD-2026-39971",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-39971",
"imported": "2026-07-17T22:21:53.763Z",
"published": "2026-06-28T01:32:54Z"
}
],
"license": "CC-BY-4.0"
}