Back to overview

CVE-2026-59147

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.

Metadata

CVE ID
CVE-2026-59147
State
PUBLISHED
Assigner
CPANSec
Reserved
2026-07-02 16:24 UTC
Published
2026-07-21 19:05 UTC
Last updated
2026-07-21 19:05 UTC
Primary CWE
CWE-787
CWE-787 Out-of-bounds Write
Vendor / Product
EGOR / Data::DisjointSet::Shared
Sources
cve.org  ·  NVD

Severity & Metrics

No CVSS data available.

Affected products (1)
VendorProductPlatformVersions
EGOR Data::DisjointSet::Shared 0 < 0.02
Weakness (CWE)
CWESourceDescription
CWE-125 cna CWE-125 Out-of-bounds Read
CWE-787 cna CWE-787 Out-of-bounds Write
Back to overview