CVE-2026-64613
JSON

6.2medium

Data::Buffer::Shared versions before 0.05 for Perl create a world-readable mmap backing file and open it without O_NOFOLLOW

Severity
6.2medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
CPANSec

Description

Data::Buffer::Shared versions before 0.05 for Perl create a world-readable mmap backing file and open it without O_NOFOLLOW. The segment is created in buf_generic.h with open(path, O_RDWR|O_CREAT|O_EXCL, 0666). O_EXCL blocks a pre-seeded file on create, but the mode is 0666, so under the default umask 022 the file is created mode 0644 (world-readable), and O_NOFOLLOW is absent, so a symlink planted at the path is followed when the segment is attached. 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 symlink at the path redirects the open to another file.

Affected

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

Classification

CWE-59CWE-732

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

What each source says

CVE List

Data::Buffer::Shared versions before 0.05 for Perl create a world-readable mmap backing file and open it without O_NOFOLLOW. The segment is created in buf_generic.h with open(path, O_RDWR|O_CREAT|O_EXCL, 0666). O_EXCL blocks a pre-seeded file on create, but the mode is 0666, so under the default umask 022 the file is created mode 0644 (world-readable), and O_NOFOLLOW is absent, so a symlink planted at the path is followed when the segment is attached. 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 symlink at the path redirects the open to another file.

NVD (es)

Las versiones de Data::Buffer::Shared anteriores a la 0.05 para Perl crean un archivo de respaldo mmap legible por cualquier usuario y lo abren sin O_NOFOLLOW. El segmento se crea en buf_generic.h con open(path, O_RDWR|O_CREAT|O_EXCL, 0666). O_EXCL bloquea un archivo preexistente al crearlo, pero el modo es 0666, así que bajo la umask predeterminada 022 el archivo se crea con el modo 0644 (legible por cualquier usuario), y O_NOFOLLOW está ausente, por lo que un enlace simbólico colocado en la ruta es seguido cuando el segmento se adjunta. 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 cualquier usuario, y un enlace simbólico preestablecido en la ruta redirige la apertura a otro archivo.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-64613 changed 2026-07-23CVE Terms of Use
NVDCVE-2026-64613 changed 2026-10-24Public domain