CVE-2026-59140: CWE-125 Out-of-bounds Read in EGOR Data::SortedSet::Shared
Data::SortedSet::Shared versions before 0.03 for Perl allow an out-of-bounds read via unvalidated node indices in the rank and min/max query paths. The attach-time validator ss_validate_header bounds only the root index against the node pool (node_capacity). The order-statistics and min/max queries then follow children[], leftmost and rightmost node indices read raw from the mmap'd segment without bounding them against node_capacity. A full structural check (ss_validate_tree) exists but runs only via an explicit validate method, not on attach. A local peer that can write the backing file can leave the header valid while poisoning the tree links, so the next rank, min or max query dereferences an out-of-bounds node index, reading adjacent memory or crashing the process.
AI Analysis
Technical Summary
CVE-2026-59140 is an out-of-bounds read vulnerability in Data::SortedSet::Shared versions prior to 0.03. The attach-time validation (ss_validate_header) only checks the root node index against the node pool capacity, but the rank and min/max query paths dereference child node indices directly from the mmap'd segment without bounds checking. Although a full tree structural validation (ss_validate_tree) exists, it is not automatically run on attach, allowing a local attacker with write access to the backing file to poison tree links. This leads to out-of-bounds reads or crashes when queries access invalid node indices.
Potential Impact
A local attacker with write access to the backing file can manipulate tree node indices to cause out-of-bounds memory reads or crashes in processes performing rank or min/max queries. This can lead to information disclosure of adjacent memory or denial of service due to process termination.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict local write access to the backing file to trusted users only. Consider running the explicit full structural validation method (ss_validate_tree) after attaching to detect corrupted tree structures.
CVE-2026-59140: CWE-125 Out-of-bounds Read in EGOR Data::SortedSet::Shared
Description
Data::SortedSet::Shared versions before 0.03 for Perl allow an out-of-bounds read via unvalidated node indices in the rank and min/max query paths. The attach-time validator ss_validate_header bounds only the root index against the node pool (node_capacity). The order-statistics and min/max queries then follow children[], leftmost and rightmost node indices read raw from the mmap'd segment without bounding them against node_capacity. A full structural check (ss_validate_tree) exists but runs only via an explicit validate method, not on attach. A local peer that can write the backing file can leave the header valid while poisoning the tree links, so the next rank, min or max query dereferences an out-of-bounds node index, reading adjacent memory or crashing the process.
Affected software
pkg:github/Data-SortedSet-SharedRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-59140 is an out-of-bounds read vulnerability in Data::SortedSet::Shared versions prior to 0.03. The attach-time validation (ss_validate_header) only checks the root node index against the node pool capacity, but the rank and min/max query paths dereference child node indices directly from the mmap'd segment without bounds checking. Although a full tree structural validation (ss_validate_tree) exists, it is not automatically run on attach, allowing a local attacker with write access to the backing file to poison tree links. This leads to out-of-bounds reads or crashes when queries access invalid node indices.
Potential Impact
A local attacker with write access to the backing file can manipulate tree node indices to cause out-of-bounds memory reads or crashes in processes performing rank or min/max queries. This can lead to information disclosure of adjacent memory or denial of service due to process termination.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict local write access to the backing file to trusted users only. Consider running the explicit full structural validation method (ss_validate_tree) after attaching to detect corrupted tree structures.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-07-02T16:24:17.912Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5fc4922a4a8d5989a1c9f5
Added to database: 07/21/2026, 19:12:18 UTC
Last enriched: 07/21/2026, 19:27:00 UTC
Last updated: 07/21/2026, 21:10:10 UTC
Views: 10
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.