CVE-2026-59147 Memory corruption in Data::DisjointSet::Shared

Critical 9.8 Published Updated

A local attacker can corrupt memory or crash the application by providing a malicious backing file to the Perl Data::DisjointSet::Shared library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-59147?

CVE-2026-59147 is a critical memory corruption vulnerability in EGOR Data::DisjointSet::Shared, published on 21 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-787, CWE-125

Which versions are affected by CVE-2026-59147?

How do I fix CVE-2026-59147?

No fix has been published for CVE-2026-59147 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-59147 being exploited?

There is no known exploitation of CVE-2026-59147 in the wild and no public exploit code.

Sources

Also known as GHSA-2q6p-wjf6-872r.

Is CVE-2026-59147 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free