Skip to main content

Data::Buffer::Shared EUVDEUVD-2026-46369

| CVE-2026-64613 MEDIUM
Incorrect Permission Assignment for Critical Resource (CWE-732)
2026-07-21 CPANSec GHSA-pmmg-wc48-vjhq
6.2
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

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

  1. Access
    Obtain local shell on target host
  2. Exploit
    Locate mmap segment file in /tmp or /dev/shm
  3. Execution
    Read world-readable backing file
  4. Impact
    Extract sensitive IPC payloads

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 an established local user session on the target host - no network-based attack path exists. The target application must be actively using Data::Buffer::Shared for IPC, with the shared segment backed by a file in a world-writable directory such as /tmp or /dev/shm. For the passive disclosure attack, no race condition or special timing is required: the attacker simply reads the world-readable mmap file while the segment is live, and any unprivileged local user can do so. For the symlink attack, the attacker must predict the segment file path and plant the symlink before the target process calls attach (introducing a race); this limits opportunistic exploitation but does not prevent a determined local attacker with knowledge of the application's segment naming. Exploitation is bounded entirely by local access and the presence of this specific CPAN module in the running application's dependency tree.

Impact

The NVD CVSS 3.1 vector AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N scores 6.2 (Medium). The local attack vector is the dominant risk-limiting factor - network-based exploitation is impossible, and an attacker must already hold a local shell on the target. EPSS at 0.16% (6th percentile) confirms very low observed exploitation interest, consistent with the niche footprint of a Perl CPAN IPC library. The vulnerability is absent from CISA KEV and no proof-of-concept has been identified. The AC:L rating is accurate for the passive disclosure path (simply reading the world-readable file requires no race or complexity), though the symlink attack introduces an implicit race condition not fully captured by AC:L - this is a minor internal tension in the NVD vector but not a material discrepancy given the low overall severity. The confidentiality impact (C:H) is legitimate: IPC payloads may carry session tokens, credentials, or sensitive application data. For Perl applications actively using this module on multi-user systems, the risk is real and the fix is trivially applied; for all other environments, this vulnerability is negligible.

Exploit ScenarioDerived

A local attacker sharing a multi-user host with a Perl application that uses Data::Buffer::Shared for IPC navigates to /tmp or /dev/shm, identifies the mmap backing file by its naming convention, and reads its contents using standard tools (cat, dd, or a trivial Perl or Python script), extracting whatever IPC payloads - potentially session data, credentials, or application state - are currently stored in the segment. In the symlink variant, the attacker predicts the segment path before the target process attaches, plants a symlink pointing to a target file such as /etc/shadow or an application secrets file, and waits for the attach to redirect the open call. No public exploit code exists at time of analysis.

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

World-readable mmap backing files and absent O_NOFOLLOW protection in Data::Buffer::Shared for Perl (versions before 0.05) expose inter-process communication payloads to any local user on the affected host. The module's buf_generic.h creates shared memory segments with mode 0666, resulting in 0644 files under the default umask of 022, and omits O_NOFOLLOW during segment attachment, enabling symlink-based file-redirect attacks against /tmp or /dev/shm paths. No exploit code is publicly available and no active exploitation has been confirmed; EPSS at 0.16% (6th percentile) reflects the niche deployment footprint, though any local user on a system running an affected Perl application can trivially read IPC payloads without elevated privileges.

RemediationAI

Upgrade Data::Buffer::Shared to version 0.05 or later using CPAN or cpanm (cpanm Data::Buffer::Shared). The changelog confirming the fix is available at https://metacpan.org/release/EGOR/Data-Buffer-Shared-0.05/changes and the precise code change - correcting file mode and adding O_NOFOLLOW - is visible in the diff at https://metacpan.org/release/EGOR/Data-Buffer-Shared-0.05/diff/EGOR/Data-Buffer-Shared-0.04#buf_generic.h. If immediate patching is blocked by application constraints, restrict the host to trusted local users only, since the attack surface is entirely local. An alternative interim control is to configure the system umask to 0077 for the application user account, preventing the 0644 world-readable mode - but this is a system-wide setting with potential side effects on other processes. Migrating IPC to Unix domain sockets with restrictive permissions (mode 0600) is a more robust compensating control that eliminates both the disclosure and symlink attack surfaces, though it requires application code changes.

Affected VersionsENISA

Data::Buffer::Shared 0 <0.05

Affected Packages

euvd data_buffer_shared fix: 0.05

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::Buffer::Shared is a Perl CPAN module providing shared memory IPC through mmap-backed files, authored under the EGOR CPAN namespace (CPE: cpe:2.3:a:egor:data::buffer::shared:*:*:*:*:*:*:*:*). The root cause, classified as CWE-732 (Incorrect Permission Assignment for Critical Resource), manifests in two related defects within buf_generic.h. First, segment creation uses open(path, O_RDWR|O_CREAT|O_EXCL, 0666): while O_EXCL prevents an attacker from pre-seeding a file at creation time, the 0666 mode produces a 0644 file under the common umask of 022, granting world-read access to any local user. Second, when a process subsequently attaches to an existing segment, the open call lacks O_NOFOLLOW, meaning a symlink placed at the segment path before attachment is silently followed, redirecting the open to an arbitrary file the attacker controls. Because shared segments naturally reside in world-writable directories like /tmp or /dev/shm, both attack surfaces are accessible to unprivileged local users by design of the IPC mechanism. The fix in version 0.05 corrects both the permission mode and adds O_NOFOLLOW, as confirmed by the MetaCPAN diff.

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 6.2 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.2 MEDIUM

Local access is the only path to the world-readable segment file; no privileges are required as any local user can read the 0644-mode mmap backing file by design.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/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
High
Integrity
None
Availability
None

Lifecycle Timeline

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

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Rare
niche Perl CPAN IPC module, minimal enterprise 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

31
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +31
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-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-65069 MEDIUM
4.0 Jul 21

Insecure mmap backing-file creation in Data::DisjointSet::Shared (Perl/CPAN) before 0.02 exposes inter-process IPC paylo

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