Description
Data::Deque::Shared versions before 0.06 for Perl create a world-readable mmap backing file and open it without O_EXCL or O_NOFOLLOW.

The segment is created in deque.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.
Published: 2026-07-21
Score: 3.8 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Data::Deque::Shared versions before 0.06 create a world-readable mmap backing file with mode 0644 in shared directories such as /tmp or /dev/shm. The file is opened without O_EXCL or O_NOFOLLOW, so a local attacker who can create a symlink or pre‑create a file at the path can redirect or pre‑create the mmap usage. This allows the attacker to read the contents of the RAM‑backed segment and potentially influence its contents, leading to information disclosure and unauthorized modification of IPC data.

Affected Systems

The affected product is EGOR Data::Deque::Shared, versions earlier than 0.06. No specific sub‑version numbers are listed beyond the pre‑0.06 boundary. The issue affects any install that uses the module on systems where /tmp or /dev/shm is mounted with world‑readable defaults.

Risk and Exploitability

The CVSS score is 3.8, reflecting modest risk. The EPSS indicates a very low probability of exploitation (<1%). The vulnerability is not listed in the CISA KEV catalog. The attack vector is local: a user with the ability to write to the shared directory or create symlinks can exploit the missing O_NOFOLLOW and O_EXCL flags. Given the low exploitation likelihood and to local users on the same host.

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

Remediation

Vendor Solution

Upgrade to Data::Deque::Shared 0.06 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.06, 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 to Data::Deque::Shared version 0.06 or newer, which creates the mmap backing file with mode 0600 and sets O_EXCL and O_NOFOLLOW to prevent symlink and race attacks.
  • If to 077 so that new files are not world‑readable and place the backing files in a directory owned solely by the user running the module, preventing other local users from accessing the IPC payload.
  • Continu shared directories and apply system‑wide security hardening (e.g., enforce noexec or strictly limit write permissions to /tmp and /dev/shm).

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Egor
Egor data::deque::shared
Vendors & Products Egor
Egor data::deque::shared

Thu, 23 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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


Tue, 21 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
Description Data::Deque::Shared versions before 0.06 for Perl create a world-readable mmap backing file and open it without O_EXCL or O_NOFOLLOW. The segment is created in deque.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::Deque::Shared versions before 0.06 for Perl create a world-readable mmap backing file and open it without O_EXCL or O_NOFOLLOW
Weaknesses CWE-59
CWE-732
References

Subscriptions

Egor Data::deque::shared
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-07-23T12:40:40.462Z

Reserved: 2026-07-20T11:30:10.287Z

Link: CVE-2026-64614

cve-icon Vulnrichment

Updated: 2026-07-23T12:39:06.171Z

cve-icon NVD

Status : Deferred

Published: 2026-07-21T20:17:04.070

Modified: 2026-07-23T13:16:29.927

Link: CVE-2026-64614

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T00:30:16Z

Weaknesses
  • CWE-59

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

  • CWE-732

    Incorrect Permission Assignment for Critical Resource