{
  "id": "CVE-2026-66034",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-66034",
  "published_at": "2026-07-24T16:42:18.764Z",
  "title": "libssh2 Heap Out-of-Bounds Read via publickey subsystem",
  "vendor": "libssh2",
  "product": "libssh2",
  "cvss": {
    "score": 7.7,
    "source": "cna",
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:a:libssh2:libssh2:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "libssh2",
        "product": "libssh2",
        "ranges": [
          "\u003c= 1.11.1"
        ],
        "fixed_in": [
          "a13bb6c773f0d55ad1628cede57e99803cd898d9"
        ]
      }
    ],
    "upgrade": [
      "Upgrade libssh2 to a13bb6c773f0d55ad1628cede57e99803cd898d9 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/libssh2/libssh2/pull/2202"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/libssh2/libssh2/commit/a13bb6c773f0d55ad1628cede57e99803cd898d9"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
