CVE Explorer
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, non
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-787","description":"CWE-787 Out-of-bounds Write","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:921c952515fb6d35442553af8cc153dc8a3966855766a82fce60111d1d8be84b · sha256:97b9bf65b44464c7… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:921c952515fb6d35442553af8cc153dc8a3966855766a82fce60111d1d8be84b · sha256:97b9bf65b44464c7… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"Data-SpatialHash-Shared","product":"Data::SpatialHash::Shared","programFiles":["sphash.h"],"programRoutines":[{"name":"sph_walk_cell"},{"name":"sph_alloc_slot"}],"repo":"https://github.com/vividsnow/perl5-data-spatialhash-shared","vendor":"EGOR","versions":[{"lessThan":"0.02","status":"affected","version":"0","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:921c952515fb6d35442553af8cc153dc8a3966855766a82fce60111d1d8be84b · sha256:97b9bf65b44464c7… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:921c952515fb6d35442553af8cc153dc8a3966855766a82fce60111d1d8be84b · sha256:97b9bf65b44464c7… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-787","description":"CWE-787 Out-of-bounds Write","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:921c952515fb6d35442553af8cc153dc8a3966855766a82fce60111d1d8be84b · sha256:97b9bf65b44464c7… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:921c952515fb6d35442553af8cc153dc8a3966855766a82fce60111d1d8be84b · sha256:97b9bf65b44464c7… · /containers/cna/problemTypes/1/descriptions/0
Source references
2 source assertions{"tags":["release-notes"],"url":"https://metacpan.org/release/EGOR/Data-SpatialHash-Shared-0.02/changes"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:921c952515fb6d35442553af8cc153dc8a3966855766a82fce60111d1d8be84b · sha256:97b9bf65b44464c7… · /containers/cna/references/1
{"url":"https://metacpan.org/release/EGOR/Data-SpatialHash-Shared-0.02/diff/EGOR/Data-SpatialHash-Shared-0.01#sphash.h"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:921c952515fb6d35442553af8cc153dc8a3966855766a82fce60111d1d8be84b · sha256:97b9bf65b44464c7… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.