9.1critical
Data::SortedSet::Shared versions before 0.03 for Perl allow an out-of-bounds read via unvalidated node indices in the rank and min/max query paths
- Severity
- 9.1critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CPANSec
Description
Data::SortedSet::Shared versions before 0.03 for Perl allow an out-of-bounds read via unvalidated node indices in the rank and min/max query paths. The attach-time validator ss_validate_header bounds only the root index against the node pool (node_capacity). The order-statistics and min/max queries then follow children[], leftmost and rightmost node indices read raw from the mmap'd segment without bounding them against node_capacity. A full structural check (ss_validate_tree) exists but runs only via an explicit validate method, not on attach. A local peer that can write the backing file can leave the header valid while poisoning the tree links, so the next rank, min or max query dereferences an out-of-bounds node index, reading adjacent memory or crashing the process.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Data-SortedSet-Shared | before 0.03 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Data::SortedSet::Shared versions before 0.03 for Perl allow an out-of-bounds read via unvalidated node indices in the rank and min/max query paths. The attach-time validator ss_validate_header bounds only the root index against the node pool (node_capacity). The order-statistics and min/max queries then follow children[], leftmost and rightmost node indices read raw from the mmap'd segment without bounding them against node_capacity. A full structural check (ss_validate_tree) exists but runs only via an explicit validate method, not on attach. A local peer that can write the backing file can leave the header valid while poisoning the tree links, so the next rank, min or max query dereferences an out-of-bounds node index, reading adjacent memory or crashing the process.
NVD (es)
Las versiones de Data::SortedSet::Shared anteriores a la 0.03 para Perl permiten una lectura fuera de límites a través de índices de nodo no validados en las rutas de consulta de rango y min/max. El validador en tiempo de adjunción ss_validate_header limita solo el índice raíz contra el pool de nodos (node_capacity). Las consultas de estadísticas de orden y min/max luego siguen los índices de nodo children[], más a la izquierda y más a la derecha, leídos directamente del segmento mapeado en memoria sin limitarlos contra node_capacity. Una verificación estructural completa (ss_validate_tree) existe, pero se ejecuta solo a través de un método de validación explícito, no en la adjunción. Un par local que puede escribir el archivo de respaldo puede dejar el encabezado válido mientras corrompe los enlaces del árbol, de modo que la siguiente consulta de rango, min o max desreferencia un índice de nodo fuera de límites, leyendo memoria adyacente o bloqueando el proceso.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-59140 changed 2026-07-22 | CVE Terms of Use |
| NVD | CVE-2026-59140 changed 2026-10-24 | Public domain |