CVE-2026-64613

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

Published Jul 21, 2026 CVSS 3.1 · 6.2 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Data::Buffer::Shared prior to version 0.05 creates a memory‑ the common umask 022 becomes 0644, allowing any local user to read the file. The file is opened without the O_NOFOLLOW flag, so a malicious user can replace the file path with a symbolic link to another file. The result is that a local attacker can read or manipulate the data stored in the shared segment or redirect the program to open sensitive files, leading to information disclosure or potential privilege escalation. The weakness is represented by CWE‑59 (Use of Potentially Dangerous Functions) and CWE‑732 (Incorrect Permission Assignment for Critical Resource).

Affected Systems

Vulnerable products include EGOR Data::Buffer::Shared, specifically all releases before 0.05. Any deployment that relies on this module and stores its backing file in a shared or /dev/shm is affected. No additional vendor or product details are listed beyond the module name.

Risk and Exploitability

The vulnerability has a CVSS score of 6.2, indicating a moderate severity. The EPSS score is less than 1%, suggesting exploitation is unlikely but still possible in targeted or high‑risk environments. It is not listed in the CISA KEV catalog. The most probable attack vector is local: a user who can write to the backing‑file directory and create or modify a symlink can read the contents of the backing file or redirect access to other files. Exploitation requires no special network access and can be performed by a local attacker with permission to write to the shared location.

Remediation

Vendor Solution

Upgrade to Data::Buffer::Shared 0.05 or later, which creates the backing file mode 0600 (owner-only) with O_NOFOLLOW.


Vendor Workaround

For deployments that cannot upgrade to 0.05, set a restrictive umask so the backing file is not world-readable and place it in a directory only the owning user can access.


OpenCVE Recommended Actions

  • Upgrade Data::Buffer::Shared to version 0.05 or later, which creates the backing file with mode 0600 and uses O_NOFOLLOW to prevent symlink attacks.
  • If an upgrade is not immediately possible, configure the process to use a restrictive umask such as 077 and place the backing file in a’ users only directory so no other local user can read it and no symlinks can be planted.
  • Ensure that the creation of the backing file is performed with the O_NOFOLLOW flag (or a wrapper that checks for symbolic links before opening), so that even if a symlink is planted the file descriptor will fail to open the redirected target.

Generated by OpenCVE AI on August 3, 2026 at 00:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Egor
Egor data::buffer::shared
Vendors & Products Egor
Egor data::buffer::shared
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Data::Buffer::Shared versions before 0.05 for Perl create a world-readable mmap backing file and open it without O_NOFOLLOW
Weaknesses CWE-59
CWE-732
References
Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

  • CWE-732

    Incorrect Permission Assignment for Critical Resource

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Jul 23, 2026, 12:25 PM
Reserved
Jul 20, 2026, 11:30 AM
Status
Deferred
Published
Jul 21, 2026, 8:17 PM
Modified
Oct 24, 2026, 7:10 PM