CVE-2026-59142: CWE-125 Out-of-bounds Read in EGOR Data::HashMap::Shared
Data::HashMap::Shared versions before 0.14 for Perl contain a critical out-of-bounds read vulnerability due to unvalidated arena offset and length values in the shm_str_copy function. This flaw allows a local attacker who can write to the backing file to manipulate offsets and lengths, causing memory reads beyond intended bounds or process crashes during certain map operations.
AI Analysis
Technical Summary
CVE-2026-59142 describes an out-of-bounds read vulnerability in Data::HashMap::Shared versions prior to 0.14. The vulnerability arises because the shm_str_copy function performs memcpy operations using offset and length values read directly from a memory-mapped segment without proper validation. Although the attach-time validator checks header scalars and region layout against file size, it does not validate the array contents, which are then trusted. A local attacker with write access to the backing file can craft a valid header but poison record offsets and lengths, leading to out-of-bounds reads or crashes when iterating or draining the map. The get path is unaffected due to separate bounds checking. This vulnerability is tracked as CWE-125 (Out-of-bounds Read) and has a CVSS 3.1 score of 9.1, indicating critical severity.
Potential Impact
An attacker with local write access to the backing file can cause the application to read memory beyond the intended bounds, potentially leaking sensitive information or causing a denial of service via process crashes. The vulnerability affects confidentiality and availability but not integrity. Remote exploitation is not indicated; the attacker must have local file write permissions.
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::HashMap::Shared to trusted users only. Avoid using affected versions in untrusted environments.
CVE-2026-59142: CWE-125 Out-of-bounds Read in EGOR Data::HashMap::Shared
Description
Data::HashMap::Shared versions before 0.14 for Perl contain a critical out-of-bounds read vulnerability due to unvalidated arena offset and length values in the shm_str_copy function. This flaw allows a local attacker who can write to the backing file to manipulate offsets and lengths, causing memory reads beyond intended bounds or process crashes during certain map operations.
CVSS v3.1
Score 9.1critical
Affected software
pkg:github/Data-HashMap-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-59142 describes an out-of-bounds read vulnerability in Data::HashMap::Shared versions prior to 0.14. The vulnerability arises because the shm_str_copy function performs memcpy operations using offset and length values read directly from a memory-mapped segment without proper validation. Although the attach-time validator checks header scalars and region layout against file size, it does not validate the array contents, which are then trusted. A local attacker with write access to the backing file can craft a valid header but poison record offsets and lengths, leading to out-of-bounds reads or crashes when iterating or draining the map. The get path is unaffected due to separate bounds checking. This vulnerability is tracked as CWE-125 (Out-of-bounds Read) and has a CVSS 3.1 score of 9.1, indicating critical severity.
Potential Impact
An attacker with local write access to the backing file can cause the application to read memory beyond the intended bounds, potentially leaking sensitive information or causing a denial of service via process crashes. The vulnerability affects confidentiality and availability but not integrity. Remote exploitation is not indicated; the attacker must have local file write permissions.
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::HashMap::Shared to trusted users only. Avoid using affected versions in untrusted environments.
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: 6a5fc4922a4a8d5989a1c9fd
Added to database: 07/21/2026, 19:12:18 UTC
Last enriched: 07/30/2026, 08:53:17 UTC
Last updated: 09/01/2026, 10:52:09 UTC
Views: 75
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.