Skip to main content

Data::DisjointSet::Shared CVE-2026-65069

| EUVDEUVD-2026-46382 MEDIUM
Incorrect Permission Assignment for Critical Resource (CWE-732)
2026-07-21 CPANSec GHSA-xqf2-wg33-4hp8
4.0
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify target mmap path in /tmp or /dev/shm
  2. Delivery
    Plant symlink or pre-created file at path
  3. Exploit
    Victim process opens path without O_EXCL/O_NOFOLLOW
  4. Execution
    Read world-readable segment or redirect write
  5. Impact
    Access IPC payload data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Permission assignment review
Exploitation Conditions

Exploitation requires local shell access to the host running the vulnerable Perl application - no network-level attack path exists. The vulnerable code path is triggered whenever Data::DisjointSet::Shared initialises a shared segment, which places a backing file in a globally writable directory such as /tmp or /dev/shm. For the passive information-disclosure variant (reading the world-readable file), the only prerequisite is that another local account exists on the same host. For the pre-planting race variant (O_EXCL absent), the attacker must write to the target directory before the application creates its segment, requiring knowledge of the expected filename. For the symlink-redirect variant (O_NOFOLLOW absent), the attacker must place a symlink at the exact backing-file path before the application opens it. Exploitation is limited to multi-user deployments; single-user or containerised environments with no co-tenancy are not meaningfully exposed. Non-default configurations do not increase risk - the insecure defaults apply unconditionally.

Impact

Real-world risk is low despite the straightforward exploitation path. CVSS 3.1 scores this at 4.0 (Medium) with AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N, reflecting local-only access with limited confidentiality impact. EPSS at 0.16% (6th percentile) aligns with this assessment - exploitation is theoretically trivial but demand is negligible, almost certainly because the affected module has a narrow, specialist deployment footprint. The CVE is not in CISA KEV, no public exploit code has been identified, and CPANSec (the reporting party) is the primary source, suggesting responsible coordinated disclosure rather than active threat activity. The most impactful sub-vector is the O_NOFOLLOW omission, which could enable an attacker to redirect writes beyond mere reading; however, the assigned CVSS does not reflect an integrity component (I:N). This is a genuine but low-priority issue: organisations that do not run multi-user Perl applications using this specific module face zero exposure. Patch friction is minimal as version 0.02 is already available.

Exploit ScenarioDerived

A local attacker on a multi-user Linux system (e.g., a shared hosting environment or HPC cluster) plants a symlink at the expected mmap backing-file path in /tmp before the target Perl application initialises its shared segment. When the vulnerable module opens the path without O_EXCL or O_NOFOLLOW, the symlink is followed, redirecting the open to an attacker-controlled file; alternatively, the attacker simply reads the world-readable 0644 backing file after it is created, recovering IPC payloads exchanged between the cooperating Perl processes. No public exploit code has been identified; the attack requires local shell access to the target host.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Insecure mmap backing-file creation in Data::DisjointSet::Shared (Perl/CPAN) before 0.02 exposes inter-process IPC payloads to any local user on the host. The module's dsu.h creates the shared segment with open(path, O_RDWR|O_CREAT, 0666), resulting in a 0644-mode file under the default umask - readable by all local accounts - typically placed in /tmp or /dev/shm. The absent O_EXCL flag silently adopts a pre-planted file, and the absent O_NOFOLLOW flag follows symlinks at the target path, enabling a local attacker to either read IPC data or redirect file operations. No active exploitation confirmed; EPSS is 0.16% (6th percentile), consistent with the niche deployment footprint.

RemediationAI

Upgrade Data::DisjointSet::Shared to version 0.02 or later via CPAN (cpan install Data::DisjointSet::Shared or cpanm Data::DisjointSet::Shared). The patch corrects the file permission mode and adds O_EXCL and O_NOFOLLOW to the open(2) call in dsu.h, as confirmed by the published diff at https://metacpan.org/release/EGOR/Data-DisjointSet-Shared-0.02/diff/EGOR/Data-DisjointSet-Shared-0.01#dsu.h. If immediate upgrade is not possible, a compensating control is to restrict the shared directory to a dedicated group or use a private per-application tmpfs mount (e.g., mount a tmpfs owned by the application's service account and set TMPDIR accordingly), ensuring no other local users have read access to the backing file. Note that this workaround requires application-level configuration and does not address the O_EXCL/O_NOFOLLOW race on the open call itself. No other workarounds are independently documented.

Affected VersionsENISA

Data::DisjointSet::Shared 0 <0.02

Affected Packages

euvd data_disjointset_shared fix: 0.02

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Data::DisjointSet::Shared is a CPAN Perl module (CPE: cpe:2.3:a:egor:data::disjointset::shared) that implements a shared-memory disjoint-set (union-find) data structure using mmap-backed files for IPC between processes. The vulnerability is rooted in CWE-732 (Incorrect Permission Assignment for Critical Resource): the backing file is created with octal mode 0666, which resolves to 0644 under the common umask of 022, leaving it world-readable. Two additional POSIX flag omissions compound the issue: (1) the absence of O_EXCL means if a file already exists at the target path, open() succeeds silently rather than failing with EEXIST, allowing a race-condition pre-planting attack; (2) the absence of O_NOFOLLOW means a symlink planted at the path is dereferenced, potentially redirecting the open to an attacker-controlled filesystem location. Shared IPC files are conventionally placed in globally writable directories such as /tmp or /dev/shm, maximising exposure on multi-user systems. The fix in version 0.02 corrects the permission mask and adds the missing flags, as visible in the published diff on MetaCPAN.

Know when Data gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 4.0 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 5.1 MEDIUM

Local vector confirmed; PR:N as any unprivileged local user qualifies; I:L added because O_NOFOLLOW absence enables symlink-redirect write to arbitrary files.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

3
CVSS changed
Jul 23, 2026 - 14:23 NVD
4.0 (MEDIUM)
Patch available
Jul 21, 2026 - 21:18 EUVD
CVE Published
Jul 21, 2026 - 19:10 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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

The segment is created in dsu.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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Rare
obscure niche CPAN Perl module, minimal production footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Data

View all
CVE-2021-29662 HIGH POC
7.5 Mar 31

The Data::Validate::IP module through 0.29 for Perl does not properly consider extraneous zero characters at the beginni

CVE-2026-59144 CRITICAL
9.8 Jul 21

Stack buffer overflow in the Perl module Data::RingBuffer::Shared before 0.04 lets a local peer with write access to the

CVE-2026-59147 CRITICAL
9.8 Jul 21

Out-of-bounds read and write in the Perl module Data::DisjointSet::Shared before version 0.02 lets a local actor who can

CVE-2026-59145 CRITICAL
9.1 Jul 21

Out-of-bounds memory disclosure in Data::Intern::Shared before 0.02, a Perl shared-memory string interning module, lets

CVE-2026-59146 HIGH
7.8 Jul 21

Out-of-bounds read and write in the Perl module Data::SpatialHash::Shared before 0.02 lets a local peer with write acces

CVE-2026-18536 HIGH
7.5 Aug 01

Entropy source compromise in Data::Entropy (Perl) before version 0.010 allows any on-path network attacker to fully cont

CVE-2026-59143 MEDIUM
6.3 Jul 21

Out-of-bounds read in Data::RoaringBitmap::Shared before version 0.02 for Perl allows a local peer with write access to

CVE-2026-64613 MEDIUM
6.2 Jul 21

World-readable mmap backing files and absent O_NOFOLLOW protection in Data::Buffer::Shared for Perl (versions before 0.0

CVE-2026-65065 MEDIUM
5.5 Jul 21

Information disclosure in Data::RoaringBitmap::Shared Perl module before 0.02 allows local attackers to read sensitive I

CVE-2026-64614 LOW
3.8 Jul 21

Information disclosure in the Perl Data::Deque::Shared module before version 0.06 exposes inter-process communication qu

CVE-2026-65068 LOW
3.8 Jul 21

World-readable IPC segment exposure in Data::SpatialHash::Shared (Perl) before version 0.02 allows any local user on a m

CVE-2026-65067 LOW
3.8 Jul 21

Insecure file creation in Data::Intern::Shared for Perl (all versions before 0.02) exposes shared memory IPC payloads to

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy