VDB

CVE-2026-66034

CVE-2026-66034 PUBLISHED CVSS 7.7 HIGH

libssh2 Heap Out-of-Bounds Read via publickey subsystem

Reported by vulncheck · Published July 24, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
libssh2Amazon Linux1.10.0-1.amzn2023.0.6, 1.4.3-12.amzn2.2.9
libssh2-develAmazon Linux1.10.0-1.amzn2023.0.6, 1.4.3-12.amzn2.2.9
cargo-cAmazon Linux0.10.21-1.amzn2023.0.1
libssh2Alpine1.11.1-r4, 1.11.1-r3
libssh2-docsAmazon Linux1.10.0-1.amzn2023.0.6, 1.4.3-12.amzn2.2.9
libssh2libssh21.11.1

Risk scores

CVSS 4.0
7.7
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

Affected products

VendorProductVersions
libssh2libssh20, a13bb6c773f0d55ad1628cede57e99803cd898d9
amazon:2libssh20
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)3.1.7
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)3.1.7
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)3.1.7
amazon:2023libssh20
amazon:2libssh2-devel0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)3.1.7
amazon:2023cargo-c0
alpinelibssh20, 0
libssh2libssh20, *
amazon:2libssh2-docs0
amazon:2023libssh2-devel0
amazon:2023libssh2-docs0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)3.1.7

Timeline

  • Jul 24, 2026 Coalition ESS Score
  • Jul 24, 2026 CVE Published
  • Jul 25, 2026 EPSS Score (30 in total, the first dated here)
  • Jul 25, 2026 Security Advisory (6 in total, the first dated here)
  • Aug 12, 2026 Distribution Patch (3 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-66034
vulnetix vdb fixes CVE-2026-66034

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-66034/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›