CVE-2026-59147: CWE-787 Out-of-bounds Write in EGOR Data::DisjointSet::Shared
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.
AI Analysis
Technical Summary
CVE-2026-59147 is an out-of-bounds read and write vulnerability in the Perl module Data::DisjointSet::Shared versions prior to 0.02. The attach-time validator dsu_validate_header verifies header scalars and region layout against file size but does not validate the array contents. The dsu_find function uses a raw file-stored parent index without bounds checking against the node count, causing both reads and writes to occur out of bounds. A local attacker with write access to the backing file can craft data that passes header validation but poisons the parent array, resulting in memory corruption or crashes during find or union operations.
Potential Impact
The vulnerability allows a local attacker who can write to the backing file to cause out-of-bounds memory access, potentially leading to memory corruption or process crashes. This can affect the stability and integrity of applications using the vulnerable Data::DisjointSet::Shared module. There is no indication of remote exploitation or known exploits in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict write access to the backing file to trusted users only to prevent exploitation. Monitor for updates from the vendor or maintainers regarding patches or official fixes.
CVE-2026-59147: CWE-787 Out-of-bounds Write in EGOR Data::DisjointSet::Shared
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.
Affected software
pkg:github/Data-DisjointSet-SharedRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-59147 is an out-of-bounds read and write vulnerability in the Perl module Data::DisjointSet::Shared versions prior to 0.02. The attach-time validator dsu_validate_header verifies header scalars and region layout against file size but does not validate the array contents. The dsu_find function uses a raw file-stored parent index without bounds checking against the node count, causing both reads and writes to occur out of bounds. A local attacker with write access to the backing file can craft data that passes header validation but poisons the parent array, resulting in memory corruption or crashes during find or union operations.
Potential Impact
The vulnerability allows a local attacker who can write to the backing file to cause out-of-bounds memory access, potentially leading to memory corruption or process crashes. This can affect the stability and integrity of applications using the vulnerable Data::DisjointSet::Shared module. There is no indication of remote exploitation or known exploits in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict write access to the backing file to trusted users only to prevent exploitation. Monitor for updates from the vendor or maintainers regarding patches or official fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-07-02T16:24:17.913Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5fcbb52a4a8d5989ac6cd8
Added to database: 07/21/2026, 19:42:45 UTC
Last enriched: 07/21/2026, 19:53:17 UTC
Last updated: 07/21/2026, 20:42:31 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.