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

The segment is created in reqrep.h with open(path, O_RDWR | O_CREAT, 0666), for both the request-reply and the integer-variant segments. 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

The flaw in Data::ReqRep::Shared prior to version 0.05 causes the module to create a memory‑mapped backing file with permission 0644 under a normal umask of 022, making the file world‑readable. Additionally, the code opens the file with the flags O_RDWR | O_CREAT but without O_EXCL or O_NOFOLLOW. This omission allows a local user to pre‑create a file or place a symbolic link at the target path; the module will follow the link or open the pre‑created file silently. Consequently any local user can read or manipulate the contents of the shared memory segment without authorization, resulting in local data disclosure. The weakness is classified as CWE‑59 (Path Traversal and Directory Traversal) and CWE‑732 (Incorrect Permission Assignment for System Objects).

Affected Systems

Data::ReqRep::Shared published by EGOR is the affected product. All versions before 0.05 contain the vulnerability; releases 0.05 and later fix the issue. Deployments utilizing Data::ReqRep::Shared 0.04 or earlier on any system where the module creates its backing file in a world‑accessible directory (e.g., /tmp or /dev/shm) are susceptible.

Risk and Exploitability

The CVSS score is 3.8, indicating a low severity, while the EPSS score is less than 1%, suggesting a low probability of exploitation at this time. The vulnerability is not catalogued in CISA KEV. Exploitation requires local user privileges and the ability to write to the shared directory (eg. /tmp or /dev/shm). An attacker who can place a symlink or pre‑create a file can cause the module to read or redirect the shared segment, leading to confidential information disclosure but not to remote code execution or privilege escalation.

Generated by OpenCVE AI on August 4, 2026 at 05:29 UTC.

Remediation

Vendor Solution

Upgrade to Data::ReqRep::Shared 0.05 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.05, 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::ReqRep::Shared to version 0.05 or later, which creates the backing file with mode 0600 and uses O_EXCL and O_NOFOLLOW
  • If an upgrade is not yet possible, configure the system’s umask to a restrictive value such as 077 so that newly created files are not world‑readable
  • Store the backing files in a directory owned by the user running the application with permissions 0700 to prevent access by other local users

Generated by OpenCVE AI on August 4, 2026 at 05:29 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::reqrep::shared
Vendors & Products Egor
Egor data::reqrep::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::ReqRep::Shared versions before 0.05 for Perl create a world-readable mmap backing file and open it without O_EXCL or O_NOFOLLOW. The segment is created in reqrep.h with open(path, O_RDWR | O_CREAT, 0666), for both the request-reply and the integer-variant segments. 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::ReqRep::Shared versions before 0.05 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::reqrep::shared
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-07-23T12:48:19.771Z

Reserved: 2026-07-21T15:29:37.116Z

Link: CVE-2026-65061

cve-icon Vulnrichment

Updated: 2026-07-23T12:47:49.810Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-07-23T14:17:42.040

Link: CVE-2026-65061

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T05:30:04Z

Weaknesses
  • CWE-59

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

  • CWE-732

    Incorrect Permission Assignment for Critical Resource