# CVE-2026-64616: Data::NDArray::Shared versions before 0.02 for Perl create a world-readable mmap backing file and open it without O\_EXCL or O\_NOFOLLOW

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.3
- **CVSS:** 3.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.14% (percentile 2, 2026-11-26)
- **CWE:** CWE-732, CWE-59
- **Published:** 2026-07-21T19:06:50.604Z
- **Modified:** 2026-10-24T19:10:00.127Z

## Who should check

- Anyone running EGOR Data::NDArray::Shared \< 0.02

## Description

Data::NDArray::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 ndarray.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.

## Affected and fixed versions

- EGOR Data::NDArray::Shared: \< 0.02 (cvelist)

## Mitigation

- Upgrade Data::NDArray::Shared to 0.02 or later.
- Vendor workaround: For deployments that cannot upgrade to 0.02, set a restrictive umask so the backing file is not world-readable and place it in a directory only the owning user can access.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64616. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64616.md
Affected: EGOR Data::NDArray::Shared < 0.02
Fixed in: EGOR Data::NDArray::Shared 0.02

Steps:
1. Search this machine and project for EGOR Data::NDArray::Shared: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64616 being exploited?

There is no confirmed exploitation: CVE-2026-64616 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.14% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64616?

Low: CVSS 3.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64616?

EGOR Data::NDArray::Shared \< 0.02.

### Is there a fix for CVE-2026-64616?

Yes. Fixed in EGOR Data::NDArray::Shared 0.02. Upgrade Data::NDArray::Shared to 0.02 or later. Vendor workaround: For deployments that cannot upgrade to 0.02, set a restrictive umask so the backing file is not world-readable and place it in a directory only the owning user can access.

### How do I check if I'm affected by CVE-2026-64616?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://metacpan.org/release/EGOR/Data-NDArray-Shared-0.02/diff/EGOR/Data-NDArray-Shared-0.01#ndarray.h>
- other: <https://metacpan.org/release/EGOR/Data-NDArray-Shared-0.02/changes>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64616>

HTML: <https://flawdb.com/CVE-2026-64616> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64616>
