CVE-2026-59140: CWE-125 Out-of-bounds Read in EGOR Data::SortedSet::Shared
Data::SortedSet::Shared versions before 0.03 for Perl contain an out-of-bounds read vulnerability due to insufficient validation of node indices in rank and min/max queries. This can lead to reading adjacent memory or crashing the process when a local attacker manipulates the backing file. The vulnerability arises because only the root index is validated on attach, while other node indices used in queries are not properly bounded. A full structural validation method exists but is not run automatically.
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 validator only checks the root index against the node pool capacity, but rank and min/max queries follow child node indices that are read directly from the mmap'd segment without bounds checking. A local attacker with write access to the backing file can craft poisoned tree links that cause these queries to dereference out-of-bounds indices, resulting in memory disclosure or process crashes. Although a comprehensive tree validation method exists, it is not invoked automatically on attach, leaving the vulnerability exploitable.
Potential Impact
An attacker with local write access to the backing file can cause out-of-bounds memory reads or crashes in processes using vulnerable versions of Data::SortedSet::Shared. This can lead to potential information disclosure or denial of service. The CVSS score of 9.1 reflects the critical severity due to network attack vector, no privileges required, no user interaction, high confidentiality impact, and high availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using vulnerable versions or restrict local write access to the backing file to trusted users. Running the explicit full structural validation method (ss_validate_tree) after attaching the data structure may help detect corruption but is not an automatic fix.
CVE-2026-59140: CWE-125 Out-of-bounds Read in EGOR Data::SortedSet::Shared
Description
Data::SortedSet::Shared versions before 0.03 for Perl contain an out-of-bounds read vulnerability due to insufficient validation of node indices in rank and min/max queries. This can lead to reading adjacent memory or crashing the process when a local attacker manipulates the backing file. The vulnerability arises because only the root index is validated on attach, while other node indices used in queries are not properly bounded. A full structural validation method exists but is not run automatically.
CVSS v3.1
Score 9.1critical
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 validator only checks the root index against the node pool capacity, but rank and min/max queries follow child node indices that are read directly from the mmap'd segment without bounds checking. A local attacker with write access to the backing file can craft poisoned tree links that cause these queries to dereference out-of-bounds indices, resulting in memory disclosure or process crashes. Although a comprehensive tree validation method exists, it is not invoked automatically on attach, leaving the vulnerability exploitable.
Potential Impact
An attacker with local write access to the backing file can cause out-of-bounds memory reads or crashes in processes using vulnerable versions of Data::SortedSet::Shared. This can lead to potential information disclosure or denial of service. The CVSS score of 9.1 reflects the critical severity due to network attack vector, no privileges required, no user interaction, high confidentiality impact, and high availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using vulnerable versions or restrict local write access to the backing file to trusted users. Running the explicit full structural validation method (ss_validate_tree) after attaching the data structure may help detect corruption but is not an automatic fix.
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/30/2026, 08:53:37 UTC
Last updated: 09/02/2026, 22:52:13 UTC
Views: 70
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.