# CVE-2026-66034: libssh2 Heap Out-of-Bounds Read via publickey subsystem

- Severity: High 7.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 37% of CVEs (2026-12-02)
- Published: 2026-07-24T16:42:18.764Z
- Modified: 2026-11-10T13:19:38.077Z
- Weaknesses: CWE-125, CWE-908
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

libssh2 through 1.11.1, fixed in commit a13bb6c, contains a missing bounds check vulnerability that allows a malicious SSH server to trigger an arbitrary-length heap out-of-bounds read and a free of an uninitialized pointer via the publickey subsystem. In libssh2_publickey_list_fetch(), the version 1 response parser reads a server-controlled comment_len value and advances the parse pointer without verifying sufficient bytes remain in the buffer, causing the out-of-bounds read to leak heap pointers from adjacent allocations defeating ASLR, followed by heap allocator state corruption when the error cleanup path frees an uninitialized pointer from a non-zeroed realloc() region.

(As written by CVE List.)

## Affected

- libssh2 libssh2: up to 1.11.1 (not affected: a13bb6c773f0d55ad1628cede57e99803cd898d9)

## Every score

- VulnCheck: CVSS:4.0 7.7 High `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`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/libssh2/libssh2/pull/2202> (issue-tracking, patch)
- <https://github.com/libssh2/libssh2/commit/a13bb6c773f0d55ad1628cede57e99803cd898d9> (patch)
- <https://www.vulncheck.com/advisories/libssh2-heap-out-of-bounds-read-via-publickey-subsystem> (patch, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2026-66034](https://www.cve.org/CVERecord?id=CVE-2026-66034), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2026-66034](https://nvd.nist.gov/vuln/detail/CVE-2026-66034), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2026-66034 · Whole record: https://cve.day/CVE-2026-66034.json · Rebuilt by cve.day 2026-11-25T22:59:30.025Z
