3.8low
Data::ReqRep::Shared versions before 0.05 for Perl create a world-readable mmap backing file and open it without O_EXCL or O_NOFOLLOW
- Severity
- 3.8low CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.12% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CPANSec
Description
Data::ReqRep::Shared versions before 0.05 for Perl create a world-readable mmap backing file and open it without O_EXCL or O_NOFOLLOW. The segment is created in reqrep.h with open(path, O_RDWR | O_CREAT, 0666), for both the request-reply and the integer-variant segments. The mode is 0666, so under the default umask 022 the file is created mode 0644 (world-readable). O_NOFOLLOW is absent, so a symlink planted at the path is followed, and O_EXCL is absent, so the open silently uses a pre-planted file instead of failing. A "Shared" segment naturally lives in a shared directory such as /tmp or /dev/shm, where any local user can read the IPC payloads stored in the world-readable segment, and a pre-planted file or symlink at the path lets a local attacker win a pre-creation race or redirect the open.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Data-ReqRep-Shared | before 0.05 | CVE List |
Classification
What each source says
CVE List
Data::ReqRep::Shared versions before 0.05 for Perl create a world-readable mmap backing file and open it without O_EXCL or O_NOFOLLOW. The segment is created in reqrep.h with open(path, O_RDWR | O_CREAT, 0666), for both the request-reply and the integer-variant segments. The mode is 0666, so under the default umask 022 the file is created mode 0644 (world-readable). O_NOFOLLOW is absent, so a symlink planted at the path is followed, and O_EXCL is absent, so the open silently uses a pre-planted file instead of failing. A "Shared" segment naturally lives in a shared directory such as /tmp or /dev/shm, where any local user can read the IPC payloads stored in the world-readable segment, and a pre-planted file or symlink at the path lets a local attacker win a pre-creation race or redirect the open.
NVD (es)
Las versiones de Data::ReqRep::Shared anteriores a la 0.05 para Perl crean un archivo de respaldo mmap legible por todos y lo abren sin O_EXCL ni O_NOFOLLOW. El segmento se crea en reqrep.h con open(ruta, O_RDWR | O_CREAT, 0666), tanto para los segmentos de solicitud-respuesta como para los de variante entera. El modo es 0666, así que bajo la umask predeterminada 022 el archivo se crea con el modo 0644 (legible por todos). O_NOFOLLOW está ausente, por lo que se sigue un enlace simbólico plantado en la ruta, y O_EXCL está ausente, por lo que la apertura utiliza silenciosamente un archivo pre-plantado en lugar de fallar. Un segmento ’Shared’ reside naturalmente en un directorio compartido como /tmp o /dev/shm, donde cualquier usuario local puede leer las cargas útiles IPC almacenadas en el segmento legible por todos, y un archivo pre-plantado o enlace simbólico en la ruta permite a un atacante local ganar una condición de carrera de pre-creación o redirigir la apertura.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-65061 changed 2026-07-23 | CVE Terms of Use |
| NVD | CVE-2026-65061 changed 2026-10-24 | Public domain |