{"id":"CVE-2026-58050","published":"2026-06-28T01:32:53Z","modified":"2026-06-29T12:27:17Z","title":"libssh2 - Integer Overflow in publickey Subsystem Attribute Allocation","vendor":"libssh2","product":"libssh2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00511,"percentile":0.36786,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"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-integer-overflow-in-publickey-subsystem-attribute-allocation","tags":["third-party-advisory"]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":7.36},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"libssh2","affectedVersions":[{"vendor":"libssh2","product":"libssh2","versions":["<= 1.11.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-29T12:26:56.794862Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-39970","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc"]}