CVE-2026-64615

Data::Graph::Shared versions before 0.04 for Perl create a world-readable mmap backing file and open it without O_EXCL or O_NOFOLLOW

Published Jul 21, 2026 CVSS 3.1 · 3.3 Low EPSS < 1% KEV · Not listed
Description
Data::Graph::Shared versions before 0.04 for Perl create a world-readable mmap backing file and open it without O_EXCL or O_NOFOLLOW.

The segment is created in graph.h with open(path, O_RDWR|O_CREAT, 0666). 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.

Analysis

AI-generated

Technical impact

Data::Graph::Shared libraries prior to version 0.04 create an mmap backing file with open(path, O_RDWR|O_CREAT, 0666). The low permissions (mode 0666) combined with the absence of the safety flags O_EXCL and O_NOFOLLOW allow the created file to be world‑readable and to be overridden or redirected by a symlink, giving a local user the ability to read or replace the backing file content.

Affected Systems

The issue affects installations of the EGOR Data::Graph::Shared module earlier than 0.04. Systems running these modules in shared directories such as /tmp or /dev/shm, where multiple local users exist, are at risk.

Risk and Exploitability

The CVSS score of 3.3 reflects a low overall risk; the EPSS score of less than 1% indicates a very low likelihood of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires local file system access, and a user could read the shared memory contents or potentially replace the file through a race or symlink, which could lead to information disclosure. Only users with local access to the host can exploit this flaw; no network or elevated privileges are required.

Remediation

Vendor Solution

Upgrade to Data::Graph::Shared 0.04 or later, which creates the backing file mode 0600 (owner-only) with O_EXCL and O_NOFOLLOW.


Vendor Workaround

For deployments that cannot upgrade to 0.04, 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::Graph::Shared to version 0.04 or newer to enforce a private 0600 mode with O_EXCL and O_NOFOLLOW.
  • If an upgrade is not possible, configure the system with a restrictive umask such as 077 so that newly created files are not world‑readable.
  • Move the backing file location to a directory that is accessible only to the owning user, avoiding shared directories like /tmp or /dev/shm.

Generated by OpenCVE AI on August 4, 2026 at 05:30 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::graph::shared
Vendors & Products Egor
Egor data::graph::shared
Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
Description Data::Graph::Shared versions before 0.04 for Perl create a world-readable mmap backing file and open it without O_EXCL or O_NOFOLLOW. The segment is created in graph.h with open(path, O_RDWR|O_CREAT, 0666). 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.
Title Data::Graph::Shared versions before 0.04 for Perl create a world-readable mmap backing file and open it without O_EXCL or 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:32 PM
Reserved
Jul 20, 2026, 11:30 AM
Status
Deferred
Published
Jul 21, 2026, 8:17 PM
Modified
Oct 24, 2026, 7:10 PM