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
Share

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

4
Analysis Generated
Jul 23, 2026 - 13:36 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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

Share

EUVD-2026-46369 vulnerability details – vuln.today

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