# CVE-2026-64613: Data::Buffer::Shared versions before 0.05 for Perl create a world-readable mmap backing file and open it without O_NOFOLLOW

- Severity: Medium 6.2 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-07-21T19:05:49.579Z
- Modified: 2026-10-24T19:10:00.127Z
- Weaknesses: CWE-59, CWE-732
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

## Description

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.

(As written by CVE List.)

## Affected

- Data-Buffer-Shared: before 0.05

## References

- <https://metacpan.org/release/EGOR/Data-Buffer-Shared-0.05/diff/EGOR/Data-Buffer-Shared-0.04#buf_generic.h>
- <https://metacpan.org/release/EGOR/Data-Buffer-Shared-0.05/changes> (release-notes)

## Sources

- CVE List: [CVE-2026-64613](https://www.cve.org/CVERecord?id=CVE-2026-64613), CVE Terms of Use, modified 2026-07-23
- NVD: [CVE-2026-64613](https://nvd.nist.gov/vuln/detail/CVE-2026-64613), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-64613 · Whole record: https://cve.day/CVE-2026-64613.json · Rebuilt by cve.day 2026-11-25T22:59:29.397Z
