libssh2 through 1.11.1, fixed in commit 42e33d8, contains a pre-authentication heap buffer overflow vulnerability that allows a malicious SSH server to corrupt heap metadata in any connecting client by sending a packet with a packet_length smaller than the cipher's block size during Encrypt-then-MAC cipher negotiation. In the fullpacket() function in src/transport.c, the ETM path allocates a buffer of packet_length bytes but copies blocksize minus one bytes via memcpy, causing an overflow that on 32-bit glibc writes attacker-controlled bytes into an adjacent chunk's SIZE field, enabling tcache bin confusion, overlapping live objects, and function pointer overwrite during the session handshake before authentication.
{
"license": "CC-BY-4.0",
"sources": [
{
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-66035",
"id": "CVE-2026-66035",
"imported": "2026-07-31T17:07:21.975Z",
"modified": "2026-07-30T15:41:05.690Z",
"published": "2026-07-24T17:17:35.547Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-66035"
},
{
"html_url": "https://github.com/advisories/GHSA-v6rf-8q4r-r495",
"id": "GHSA-v6rf-8q4r-r495",
"imported": "2026-07-31T17:07:26.589Z",
"modified": "2026-07-24T18:31:41Z",
"published": "2026-07-24T18:31:30Z",
"url": "https://api.github.com/advisories/GHSA-v6rf-8q4r-r495"
},
{
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-48722",
"id": "EUVD-2026-48722",
"imported": "2026-07-31T17:07:23.798Z",
"modified": "2026-07-28T01:06:26Z",
"published": "2026-07-24T16:45:24Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-48722"
}
]
}