{
  "id": "CVE-2026-59146",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-59146",
  "published_at": "2026-07-21T19:04:56.729Z",
  "title": "Data::SpatialHash::Shared versions before 0.02 for Perl allow out-of-bounds reads and writes via unvalidated bucket, link and free-list indices in sph_walk_cell and sph_alloc_slot",
  "vendor": "EGOR",
  "product": "Data::SpatialHash::Shared",
  "cvss": {
    "score": 7.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "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": "Data::SpatialHash::Shared versions before 0.02 for Perl allow out-of-bounds reads and writes via unvalidated bucket, link and free-list indices in sph_walk_cell and sph_alloc_slot.\n\nThe attach-time validator sph_validate_header checks the header scalars and region layout against the file size, but does not validate the array contents it then trusts. sph_walk_cell reads entries[buckets[b]] and follows each entry's next link raw, and sph_alloc_slot writes through a file-stored free_head index, none bounded against the entry count (max_entries).\n\nA local peer that can write the backing file can leave the header valid while poisoning the bucket chain and free list, so a query reads through an out-of-bounds bucket and next index and an insert writes through an out-of-bounds free-list head, corrupting memory or crashing the process.",
  "cwe": "CWE-787",
  "cvss_by_source": {
    "cisa-adp": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "EGOR",
        "product": "Data::SpatialHash::Shared",
        "ranges": [
          "\u003c 0.02"
        ],
        "fixed_in": [
          "0.02"
        ]
      }
    ],
    "solutions": [
      "Upgrade to Data::SpatialHash::Shared 0.02 or later, which bounds every entry index against the entry count before dereferencing it."
    ],
    "upgrade": [
      "Upgrade Data::SpatialHash::Shared to 0.02 or later."
    ],
    "workarounds": [
      "For deployments that cannot upgrade to 0.02, place the backing file in a directory writable only by the owning user, so a local peer cannot tamper with the bucket chain and free list."
    ],
    "references": [
      {
        "kind": "Release notes",
        "url": "https://metacpan.org/release/EGOR/Data-SpatialHash-Shared-0.02/changes"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
