# CVE-2026-59147: Data::DisjointSet::Shared versions before 0.02 for Perl allow out-of-bounds reads and writes via an unvalidated parent index in dsu_find

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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.42%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-07-21T19:05:11.638Z
- Modified: 2026-10-24T19:10:00.127Z
- Weaknesses: CWE-125, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: CPANSec

## Description

Data::DisjointSet::Shared versions before 0.02 for Perl allow out-of-bounds reads and writes via an unvalidated parent index in dsu_find.

The attach-time validator dsu_validate_header checks the header scalars and region layout against the file size, but does not validate the array contents it then trusts. dsu_find walks and path-compresses parent[x] with x a raw file-stored index never bounded against the node count, so both the read and the compression write-back land out of bounds.

A local peer that can write the backing file can leave the header valid while poisoning the parent array, so the next find or union both reads and writes through an out-of-bounds parent index, corrupting memory or crashing the process.

(As written by CVE List.)

## Affected

- Data-DisjointSet-Shared: before 0.02

## References

- <https://metacpan.org/release/EGOR/Data-DisjointSet-Shared-0.02/diff/EGOR/Data-DisjointSet-Shared-0.01#dsu.h>
- <https://metacpan.org/release/EGOR/Data-DisjointSet-Shared-0.02/changes> (release-notes)

## Sources

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

---

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