{"schemaVersion":3,"id":"CVE-2026-66035","aliases":["RHSA-2026:46955","UBUNTU-CVE-2026-66035","DEBIAN-CVE-2026-66035","CGA-387j-6j2q-wcc9","CGA-66g3-3gv3-2pvx","CGA-hcpg-454w-h59h","CGA-j7vf-wr2r-h6vf","CGA-mh2m-fphc-j8r6","CGA-xcpq-wf9r-j32w","ALPINE-CVE-2026-66035"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-07-24T16:45:24.405Z","modified":"2026-07-28T01:06:26.873Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.7,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Red hat","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":4.1,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":7.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.1,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":7.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":7.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":7.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Alpine","score":7.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/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","exploitability":null,"impact":null,"computed":true}]},"epss":{"probability":0.00472,"percentile":0.39536,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00472},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00472,"percentile":0.39536}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00551,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00472,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00472,"percentile":0.39536}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-122","name":"Heap-based Buffer Overflow","description":"A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/122.html"}],"affected":[{"vendor":"alpine","product":"libssh2","name":"libssh2","label":"libssh2","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/libssh2","purlType":"apk","versions":[{"text":"< 1.11.1-r4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.11.1-r4","eol":null,"hubHref":null},{"vendor":"chainguard","product":"libssh2","name":"libssh2","label":"libssh2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/libssh2","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"libssh2-dev","name":"libssh2-dev","label":"libssh2-dev","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/libssh2-dev","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"libssh2-doc","name":"libssh2-doc","label":"libssh2-doc","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/libssh2-doc","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"libssh2","name":"libssh2","label":"libssh2","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/libssh2","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"libssh2-dev","name":"libssh2-dev","label":"libssh2-dev","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/libssh2-dev","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"libssh2-doc","name":"libssh2-doc","label":"libssh2-doc","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/libssh2-doc","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"libssh2","name":"libssh2","label":"libssh2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libssh2","purlType":"deb","versions":[{"text":"< 1.11.1-1+deb13u2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.11.1-5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.11.1-1+deb13u2 | < 1.11.1-5","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libssh2","name":"libssh2","label":"libssh2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libssh2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 1.11.0-4.1ubuntu0.24.04.4","noFixRecorded":false,"fixedIn":null},{"text":"< 1.11.1-1ubuntu0.26.04.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 1.11.0-4.1ubuntu0.24.04.4 | < 1.11.1-1ubuntu0.26.04.4","eol":null,"hubHref":null},{"vendor":"libssh2","product":"libssh2","name":"libssh2","label":"libssh2","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.11.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.11.1","eol":null,"hubHref":"/vendor/libssh2/libssh2"},{"vendor":"redhat","product":"libssh2","name":"libssh2","label":"libssh2","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libssh2","purlType":"rpm","versions":[{"text":"< 0:1.11.1-10.3.hum1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:1.11.1-10.3.hum1","eol":null,"hubHref":null},{"vendor":"redhat","product":"libssh2-devel","name":"libssh2-devel","label":"libssh2-devel","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libssh2-devel","purlType":"rpm","versions":[{"text":"< 0:1.11.1-10.3.hum1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:1.11.1-10.3.hum1","eol":null,"hubHref":null},{"vendor":"redhat","product":"libssh2-docs","name":"libssh2-docs","label":"libssh2-docs","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libssh2-docs","purlType":"rpm","versions":[{"text":"< 0:1.11.1-10.3.hum1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:1.11.1-10.3.hum1","eol":null,"hubHref":null}],"affectedCount":13,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/libssh2/libssh2/pull/2198","label":"github.com/libssh2/libssh2/pull/2198","hostname":"github.com","tags":["Issue Tracking","Patch","ARTICLE","REPORT","FIX"]},{"url":"https://github.com/libssh2/libssh2/commit/42e33d81577ed4b95d4b4f6f845e5ee8efe5eeb4","label":"github.com/libssh2/libssh2/commit/42e33d81577ed4b95d4b4f6f845e5ee8efe5eeb4","hostname":"github.com","tags":["Patch","ARTICLE","FIX"]},{"url":"https://www.vulncheck.com/advisories/libssh2-heap-buffer-overflow-via-etm-cipher-negotiation","label":"www.vulncheck.com/advisories/libssh2-heap-buffer-overflow-via-etm-cipher-negotiation","hostname":"www.vulncheck.com","tags":["Third Party Advisory","ARTICLE","REPORT","Advisory","Patch"]},{"url":"https://access.redhat.com/errata/RHSA-2026:46955","label":"access.redhat.com/errata/RHSA-2026:46955","hostname":"access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-66035","label":"access.redhat.com/security/cve/CVE-2026-66035","hostname":"access.redhat.com","tags":["REPORT"]},{"url":"https://access.redhat.com/security/updates/classification/","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://images.redhat.com/","label":"images.redhat.com","hostname":"images.redhat.com","tags":["ARTICLE"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_46955.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_46955.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2506851","label":"bugzilla.redhat.com/show_bug.cgi?id=2506851","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-66035","label":"www.cve.org/CVERecord?id=CVE-2026-66035","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66035","label":"nvd.nist.gov/vuln/detail/CVE-2026-66035","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://ubuntu.com/security/CVE-2026-66035","label":"ubuntu.com/security/CVE-2026-66035","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8722-1","label":"ubuntu.com/security/notices/USN-8722-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-66035","label":"security-tracker.debian.org/tracker/CVE-2026-66035","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66035.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66035.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/libssh2/libssh2","label":"github.com/libssh2/libssh2","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2026-66035","label":"security.alpinelinux.org/vuln/CVE-2026-66035","hostname":"security.alpinelinux.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0402","OPENSUSE-SU-2026:11454-1","OPENSUSE-SU-2026:21549-1","SUSE-SU-2026:23049-1","SUSE-SU-2026:23187-1","SUSE-SU-2026:23214-1","SUSE-SU-2026:23225-1","SUSE-SU-2026:23245-1","SUSE-SU-2026:3525-1","SUSE-SU-2026:3526-1","SUSE-SU-2026:3541-1","SUSE-SU-2026:4095-1","USN-8722-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:11454-1","OPENSUSE-SU-2026:21549-1","SUSE-SU-2026:23049-1","SUSE-SU-2026:23187-1","SUSE-SU-2026:23214-1","SUSE-SU-2026:23225-1","SUSE-SU-2026:23245-1","SUSE-SU-2026:3525-1","SUSE-SU-2026:3526-1","SUSE-SU-2026:3541-1","SUSE-SU-2026:4095-1","USN-8722-1"]},"timeline":[{"kind":"published","date":"2026-07-24T16:45:24.405Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-28T01:06:26.873Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T16:32:51.928Z","stale":false,"partial":false}}