CVE-2026-66034 libssh2 Heap Out-of-Bounds Read via publickey subsystem
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
20 packages: 14 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux rust(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed | No fix yet |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed | No fix yet |
| alpine/libssh2(Alpine v3.21) | < 1.11.1-r3 | 1.11.1-r3 | Fixed |
| alpine/libssh2(Alpine v3.22) | < 1.11.1-r3 | 1.11.1-r3 | Fixed |
| alpine/libssh2(Alpine v3.23) | < 1.11.1-r4 | 1.11.1-r4 | Fixed |
| alpine/libssh2(Alpine v3.24) | < 1.11.1-r4 | 1.11.1-r4 | Fixed |
| azure linux libssh2(Azure Linux 3.0) | < 1.11.1-5 | 1.11.1-5 | Fixed |
| debian/libssh2(Debian 12) | < 1.10.0-3+deb12u1; = 1.10.0-3 | 1.10.0-3+deb12u1 | Fixed |
| debian/libssh2(Debian 13) | < 1.11.1-1+deb13u2; = 1.11.1-1; = 1.11.1-1+deb13u1 | 1.11.1-1+deb13u2 | Fixed |
| debian/libssh2(Debian 14) | < 1.11.1-5; = 1.11.1-1; = 1.11.1-2; = 1.11.1-3 +1 more | 1.11.1-5 | Fixed |
| libssh2 | <= 1.11.1 | after 1.11.1 | Fixed |
| redhat/libssh2(Red Hat rhel_els 7) | < 1.8.0-4.el7_9.2 | 1.8.0-4.el7_9.2 | Fixed |
| redhat/libssh2-main(Red Hat hummingbird 1) | < 1.11.1-10.2.hum1 | 1.11.1-10.2.hum1 | Fixed |
| ubuntu/libssh2(Ubuntu 22.04) | < 1.10.0-3ubuntu0.1 | 1.10.0-3ubuntu0.1 | Fixed |
| ubuntu/libssh2(Ubuntu 24.04) | < 1.11.0-4.1ubuntu0.24.04.3 | 1.11.0-4.1ubuntu0.24.04.3 | Fixed |
| ubuntu/libssh2(Ubuntu 26.04) | < 1.11.1-1ubuntu0.26.04.3 | 1.11.1-1ubuntu0.26.04.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| libssh2 | <= 1.11.1 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | >= V3.1.7 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | >= V3.1.7 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | >= V3.1.7 | No fix listed |
| redhat/libssh2(Red Hat:rhel_els:7) | < 1.8.0-4.el7_9.2 | 1.8.0-4.el7_9.2 |
| redhat/libssh2-main(Red Hat:hummingbird:1) | < 1.11.1-10.2.hum1 | 1.11.1-10.2.hum1 |
| redhat/libssh2(Red Hat:rhel_els:6) | All versions | No fix listed |
| debian/libssh2(Debian:12) | < 1.10.0-3+deb12u1 | 1.10.0-3+deb12u1 |
| debian/libssh2(Debian:12) | = 1.10.0-3 | No fix listed |
| debian/libssh2(Debian:13) | < 1.11.1-1+deb13u2 | 1.11.1-1+deb13u2 |
| debian/libssh2(Debian:13) | = 1.11.1-1 | No fix listed |
| debian/libssh2(Debian:13) | = 1.11.1-1+deb13u1 | No fix listed |
| debian/libssh2(Debian:14) | < 1.11.1-5 | 1.11.1-5 |
| debian/libssh2(Debian:14) | = 1.11.1-1 | No fix listed |
| debian/libssh2(Debian:14) | = 1.11.1-2 | No fix listed |
| debian/libssh2(Debian:14) | = 1.11.1-3 | No fix listed |
| debian/libssh2(Debian:14) | = 1.11.1-4 | No fix listed |
| ubuntu/libssh2(Ubuntu:22.04) | < 1.10.0-3ubuntu0.1 | 1.10.0-3ubuntu0.1 |
| alpine/libssh2(Alpine:v3.21) | < 1.11.1-r3 | 1.11.1-r3 |
| alpine/libssh2(Alpine:v3.22) | < 1.11.1-r3 | 1.11.1-r3 |
| alpine/libssh2(Alpine:v3.23) | < 1.11.1-r4 | 1.11.1-r4 |
| alpine/libssh2(Alpine:v3.24) | < 1.11.1-r4 | 1.11.1-r4 |
| ubuntu/libssh2(Ubuntu:24.04) | < 1.11.0-4.1ubuntu0.24.04.3 | 1.11.0-4.1ubuntu0.24.04.3 |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/libssh2(Ubuntu:26.04) | < 1.11.1-1ubuntu0.26.04.3 | 1.11.1-1ubuntu0.26.04.3 |
| azure linux libssh2(Azure Linux:3.0) | < 1.11.1-5 | 1.11.1-5 |
| azure linux rust(Azure Linux:3.0) | All versions | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Pull Request issue-tracking patch
- Patch Commit patch
- www.vulncheck.com patch third-party-advisory
- cert-portal.siemens.com
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:61752 patch vendor-advisory
- RHSA-2026:46927 patch vendor-advisory
- Red Hat Bugzilla 2506860 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-66034 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8799-1 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking