CVE-2026-59147

9.8

EGOR · Data::DisjointSet::Shared

Data::DisjointSet::Shared for Perl allows out-of-bounds reads and writes due to unvalidated parent indices, potentially leading to memory corruption or process crashes.

Executive summary

An unvalidated index vulnerability in the Data::DisjointSet::Shared Perl module poses a critical risk of memory corruption, potentially allowing an attacker to achieve arbitrary code execution or cause service instability.

Vulnerability

The vulnerability involves improper bounds checking within the dsu_find function, where raw file-stored indices are trusted without validation against the node count. This allows an unauthenticated attacker, capable of writing to the backing file, to perform out-of-bounds read and write operations.

Business impact

The ability to perform out-of-bounds reads and writes enables an attacker to corrupt process memory, which can lead to unauthorized information disclosure or the execution of arbitrary code with the privileges of the affected process. Given the CVSS score of 9.8, this vulnerability is classified as critical, as it allows for full system compromise if the Perl module is used in a high-privilege or network-facing service.

Remediation

Immediate Action: Upgrade the Data::DisjointSet::Shared module to version 0.02 or later, which correctly implements bounds checking for parent indices.

Proactive Monitoring: Review file system permissions for any backing files used by the module to ensure that only authorized processes can write to them.

Compensating Controls: If an immediate update is not possible, restrict file system access to the data files used by the module to prevent untrusted parties from poisoning the parent array.

Exploitation status

Public Exploit Available: No

Analyst recommendation

This vulnerability represents a severe risk to the integrity and availability of applications utilizing the Data::DisjointSet::Shared module. Administrators must prioritize updating to version 0.02 or later to ensure that proper validation logic is applied to all data indices. Failure to patch may allow attackers to manipulate memory structures, leading to catastrophic system failure or unauthorized code execution.

More EGOR CVEs

Sources