{"id":"CVE-2026-59146","aliases":["CVE-2026-59146"],"related":[],"kind":"vulnerability","state":"published","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","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Versiones de Data::SpatialHash::Shared anteriores a la 0.02 para Perl permiten lecturas y escrituras fuera de límites a través de índices de cubo, enlace y lista de libres no validados en sph_walk_cell y sph_alloc_slot.\n\nEl validador en tiempo de adjunción sph_validate_header verifica los escalares del encabezado y la disposición de la región contra el tamaño del archivo, pero no valida el contenido del array en el que luego confía. sph_walk_cell lee entries[buckets[b]] y sigue el enlace ’next’ de cada entrada en bruto, y sph_alloc_slot escribe a través de un índice free_head almacenado en archivo, ninguno acotado contra el recuento de entradas (max_entries).\n\nUn par local que puede escribir el archivo subyacente puede dejar el encabezado válido mientras envenena la cadena de cubos y la lista de libres, de modo que una consulta lee a través de un cubo y un índice ’next’ fuera de límites y una inserción escribe a través de una cabecera de lista de libres fuera de límites, corrompiendo la memoria o bloqueando el proceso.","source":"nvd"}],"published":"2026-07-21T19:04:56.729Z","modified":"2026-10-24T19:10:00.127Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-125","CWE-787"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"0.02","status":"affected"}],"vendor":"EGOR","product":"Data::SpatialHash::Shared","package":"Data-SpatialHash-Shared","repo":"https://github.com/vividsnow/perl5-data-spatialhash-shared","source":"cvelist"}],"references":[{"url":"https://metacpan.org/release/EGOR/Data-SpatialHash-Shared-0.02/diff/EGOR/Data-SpatialHash-Shared-0.01#sphash.h","tags":[],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/EGOR/Data-SpatialHash-Shared-0.02/changes","tags":["release-notes"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-22T19:36:20.230Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59146","url":"https://www.cve.org/CVERecord?id=CVE-2026-59146","licence":"CVE Terms of Use","modified":"2026-07-22T19:36:54.589Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59146","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59146","licence":"Public domain","modified":"2026-10-24T19:10:00.127Z"}],"updatedAt":"2026-11-25T22:59:29.396Z","epss":{"score":0.00139,"percentile":0.03482,"date":"2026-12-01T12:00:22.000Z"}}