{
  "id": "CVE-2026-58051",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-58051",
  "published_at": "2026-06-28T01:32:54.283Z",
  "title": "libssh2 - Free of Uninitialized Pointer in publickey List Cleanup",
  "vendor": "libssh2",
  "product": "libssh2",
  "cvss": {
    "score": 8.3,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/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 grows its publickey list with SSH2_REALLOC but does not zero-initialize new entries before parsing populates them, so a parse failure reaching the cleanup path leaves libssh2_publickey_list_free operating on an uninitialized entry. A malicious SSH server offering the publickey subsystem can use a malformed response to make cleanup free an uninitialized, attacker-influenceable attrs pointer in a connecting libssh2 client.",
  "cwe": "CWE-908",
  "cpes": [
    "cpe:2.3:a:libssh2:libssh2:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "libssh2",
        "product": "libssh2",
        "ranges": [
          "\u003c= 1.11.1"
        ],
        "fixed_in": null
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc",
      "source": "pocindex",
      "title": "",
      "published_at": null,
      "first_seen_at": "2026-11-14T11:25:11.578Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
