CVE-2026-59145: CWE-125 Out-of-bounds Read in EGOR Data::Intern::Shared
Data::Intern::Shared versions before 0.02 for Perl allow an out-of-bounds read via unvalidated slot, reverse and arena indices in si_idx_find. The attach-time validator si_validate_header is thorough about the header and layout (magic, version, section offsets, total_size, count and arena_used) but does not validate the three arrays it then trusts. Every lookup in si_idx_find walks a triple indirection read straight from the mmap'd segment, arena[reverse[slots[i].id]], with no bound on slots[i].id against count, on the reverse[id] arena offset against arena_used, or on the arena record's length prefix. A local peer that can write the backing file can leave the header valid while poisoning a slot id, a reverse offset or an arena length prefix, so an id_of, intern or string lookup dereferences the chain out of bounds; because string() returns a file-controlled length of bytes from the arena, adjacent process memory can be disclosed.
AI Analysis
Technical Summary
The vulnerability in Data::Intern::Shared (prior to version 0.02) arises from insufficient validation of slot, reverse, and arena indices used in the si_idx_find function. While the header and layout are validated at attach time, the arrays used for triple indirection reads are not checked for bounds. This allows a local attacker who can write to the backing file to poison these indices, causing out-of-bounds reads when functions like id_of, intern, or string are called. The string() function returns a length of bytes controlled by the attacker from the arena, potentially disclosing adjacent process memory. This is classified as a CWE-125 (Out-of-bounds Read) vulnerability. There is no CVSS score or known exploits in the wild, and no official remediation or patch is currently documented.
Potential Impact
An attacker with local write access to the backing file can cause out-of-bounds reads in the affected library, potentially leading to disclosure of adjacent process memory. This could expose sensitive information from the process memory space. The vulnerability does not indicate remote exploitation or code execution capabilities based on the provided data.
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 used by Data::Intern::Shared to trusted users only. Monitor for vendor updates regarding patches or official fixes.
CVE-2026-59145: CWE-125 Out-of-bounds Read in EGOR Data::Intern::Shared
Description
Data::Intern::Shared versions before 0.02 for Perl allow an out-of-bounds read via unvalidated slot, reverse and arena indices in si_idx_find. The attach-time validator si_validate_header is thorough about the header and layout (magic, version, section offsets, total_size, count and arena_used) but does not validate the three arrays it then trusts. Every lookup in si_idx_find walks a triple indirection read straight from the mmap'd segment, arena[reverse[slots[i].id]], with no bound on slots[i].id against count, on the reverse[id] arena offset against arena_used, or on the arena record's length prefix. A local peer that can write the backing file can leave the header valid while poisoning a slot id, a reverse offset or an arena length prefix, so an id_of, intern or string lookup dereferences the chain out of bounds; because string() returns a file-controlled length of bytes from the arena, adjacent process memory can be disclosed.
Affected software
pkg:github/Data-Intern-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
The vulnerability in Data::Intern::Shared (prior to version 0.02) arises from insufficient validation of slot, reverse, and arena indices used in the si_idx_find function. While the header and layout are validated at attach time, the arrays used for triple indirection reads are not checked for bounds. This allows a local attacker who can write to the backing file to poison these indices, causing out-of-bounds reads when functions like id_of, intern, or string are called. The string() function returns a length of bytes controlled by the attacker from the arena, potentially disclosing adjacent process memory. This is classified as a CWE-125 (Out-of-bounds Read) vulnerability. There is no CVSS score or known exploits in the wild, and no official remediation or patch is currently documented.
Potential Impact
An attacker with local write access to the backing file can cause out-of-bounds reads in the affected library, potentially leading to disclosure of adjacent process memory. This could expose sensitive information from the process memory space. The vulnerability does not indicate remote exploitation or code execution capabilities based on the provided data.
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 used by Data::Intern::Shared to trusted users only. Monitor for vendor updates 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: 6a5fcbb52a4a8d5989ac6cd0
Added to database: 07/21/2026, 19:42:45 UTC
Last enriched: 07/21/2026, 19:53:33 UTC
Last updated: 07/21/2026, 21:09:18 UTC
Views: 4
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.