CVE-2026-59139
JSON

9.1critical

Data::ReqRep::Shared versions before 0.05 for Perl allow an out-of-bounds read via an unvalidated arena offset and length in reqrep_recv_locked

Severity
9.1critical CVSS:3.1 by CISA-ADP
Exploit likelihood
0.35% (higher than 30% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
CPANSec

Description

Data::ReqRep::Shared versions before 0.05 for Perl allow an out-of-bounds read via an unvalidated arena offset and length in reqrep_recv_locked. The attach-time validator reqrep_validate_header checks the header scalars and region layout against the file size, but does not validate the array contents it then trusts. reqrep_recv_locked does memcpy(copy_buf, req_arena + arena_off, len) with arena_off and len read raw from the mmap'd segment and never bounded against the arena capacity (req_arena_cap). A local peer that can write the backing file can leave the header valid while poisoning a request slot's offset and length, so receiving the request copies a file-controlled offset and length out of the arena, reading adjacent memory or crashing the process.

Affected

Product or packageVersionsReported by
Data-ReqRep-Sharedbefore 0.05CVE List

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Data::ReqRep::Shared versions before 0.05 for Perl allow an out-of-bounds read via an unvalidated arena offset and length in reqrep_recv_locked. The attach-time validator reqrep_validate_header checks the header scalars and region layout against the file size, but does not validate the array contents it then trusts. reqrep_recv_locked does memcpy(copy_buf, req_arena + arena_off, len) with arena_off and len read raw from the mmap'd segment and never bounded against the arena capacity (req_arena_cap). A local peer that can write the backing file can leave the header valid while poisoning a request slot's offset and length, so receiving the request copies a file-controlled offset and length out of the arena, reading adjacent memory or crashing the process.

NVD (es)

Las versiones de Data::ReqRep::Shared anteriores a 0.05 para Perl permiten una lectura fuera de límites a través de un desplazamiento y una longitud de arena no validados en reqrep_recv_locked. El validador en tiempo de adjunción reqrep_validate_header comprueba 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. reqrep_recv_locked realiza memcpy(copy_buf, req_arena + arena_off, len) con arena_off y len leídos directamente del segmento mapeado en memoria y nunca acotados contra la capacidad de la arena (req_arena_cap). Un par local que puede escribir el archivo de respaldo puede dejar el encabezado válido mientras envenena el desplazamiento y la longitud de una ranura de solicitud, de modo que recibir la solicitud copia un desplazamiento y una longitud controlados por el archivo fuera de la arena, leyendo memoria adyacente o bloqueando el proceso.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-59139 changed 2026-07-22CVE Terms of Use
NVDCVE-2026-59139 changed 2026-10-24Public domain