A Malicious SSH Server Can Leak libssh2 Heap Pointers and Corrupt Allocator State Through an Unbounded comment_len in the Publickey Subsystem
Last refreshed2026-11-19
Status: UPDATED
| Advisory ID: CVE-2026-66034
Key Details
CVE
CVE-2026-66034
CVSS Score / Version
7.5 (High) / CVSS v3.1
Updated
2026-11-10
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is network; attack complexity is high; privileges required is none; user interaction is required; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
see table below
Classified as
CWE-125 (Out-of-bounds Read)
Exploitation prediction (EPSS)
0.42% probability of exploitation in the next 30 days (37% percentile) -- FIRST.org's EPSS model.
Affected Products, Subsystems & Sectors
Vendor
Product
Affected Versions
Patch Status
Siemens
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)
Siemens
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)
Siemens
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)
Siemens
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)
Siemens
SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)
libssh2
libssh2
Subsystems
Controllers & Field I/O
Sectors
Multiple
What to Know
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. (NVD)
What to Do
Currently no fix is available. See further recommendations from section Mitigations. Source: Siemens SSA-457936