Home / EGOR / Data::SpatialHash::Shared / CVE-2026-59146
CVE-2026-59146: is it exploited, and which versions of EGOR Data::SpatialHash::Shared are affected and fixed?
CVE-2026-59146 is an out-of-bounds write (memory corruption) vulnerability in EGOR Data::SpatialHash::Shared. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: Data::SpatialHash::Shared before 0.02 (CVE record by CPANSec). Fixed in 0.02 (CVE record by CPANSec). Severity: High (7.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:09 UTC.
What is CVE-2026-59146?
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. The 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). A 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.
From the CVE record by CPANSec, last updated July 22, 2026, 19:36 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| EGOR | Data::SpatialHash::Shared Data-SpatialHash-Shared | before 0.02 | 0.02 |
As the CVE record by CPANSec states it, last updated July 22, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-59146?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | CISA-ADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-59146 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, July 22, 2026)
- EPSS
- 0.14% probability of exploitation activity in the next 30 days, percentile 3.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
How do I fix it? (from the CVE record)
Upgrade to Data::SpatialHash::Shared 0.02 or later, which bounds every entry index against the entry count before dereferencing it.
Is there a workaround? (from the CVE record)
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.
Where are the vendor advisories and references?
- https://metacpan.org/release/EGOR/Data-SpatialHash-Shared-0.02/diff/EGOR/Data-SpatialHash-Shared-0.01#sphash.h
- https://metacpan.org/release/EGOR/Data-SpatialHash-Shared-0.02/changes release-notes
When was it published, and where is the official record?
- Reserved
- July 2, 2026
- Published
- July 21, 2026, 19:04 UTC
- CVE record updated
- July 22, 2026, 19:36 UTC by CPANSec
- NVD
- Deferred, last modified October 24, 2026, 19:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:09 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Data::SpatialHash::Shared?
- Jul 21, 2026CVE-2026-65068 EGOR Data::SpatialHash::Shared: incorrect permissions on a critical resource
Every CVE in Data::SpatialHash::Shared
Questions about CVE-2026-59146
Is CVE-2026-59146 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 0.14% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of EGOR Data::SpatialHash::Shared are affected by CVE-2026-59146?
Data::SpatialHash::Shared before 0.02, per the CVE record by CPANSec. The tables above give every range the sources list.
Which version fixes CVE-2026-59146?
0.02, per the CVE record by CPANSec. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-59146?
High (7.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2026-59146?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.