CVE-2026-59147 Details
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.
A vulnerability in Data::DisjointSet::Shared for Perl, affecting versions prior to 0.02, allows for out-of-bounds reads and writes. This issue arises from an unvalidated parent index in the 'dsu_find' function. The 'dsu_validate_header' function checks the header's scalars and region layout against the file size but fails to validate the contents of the parent array, which it subsequently trusts. The 'dsu_find' function traverses and compresses parent[x] using a raw file-stored index that is not bounded by the node count, leading to out-of-bounds memory access. A local peer with write access to the backing file can manipulate the parent array while keeping the header valid, causing memory corruption or process crashes during the next 'find' or 'union' operation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 21, 2026CISA-ADP
Assessed Jul 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://metacpan.org/release/EGOR/Data-DisjointSet-Shared-0.02/changes | CPANSec | ProductVendor |
| https://metacpan.org/release/EGOR/Data-DisjointSet-Shared-0.02/diff/EGOR/Data-DisjointSet-Shared-0.01#dsu.h | CPANSec | Source CodeVendor |
Weakness Enumeration
Affected Products
| Product | Versions |
|---|---|
| Data::DisjointSet::Shared | < 0.02 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Modified | CISA-ADP |
| Jul 21, 2026 | New CVE Received | CPANSec |
Volerion