CVE-2026-59142
Last modified
CVE-2026-59142 is a critical-severity vulnerability rated 9.1/10 on the CVSS scale. Data::HashMap::Shared versions before 0.14 for Perl allow an out-of-bounds read via an unvalidated arena offset and length in shm_str_copy. The attach-time validator shm_validate_header checks the header scalars and region layout against the file size, but does not validate the array contents it then trusts. shm_str_copy does memcpy(dst, arena + off, len) with off and len read raw from the mmap'd segment and unbounded, on the each, keys, values, pop, shift, take, swap, drain and cursor paths. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
Description
Data::HashMap::Shared versions before 0.14 for Perl allow an out-of-bounds read via an unvalidated arena offset and length in shm_str_copy. The attach-time validator shm_validate_header checks the header scalars and region layout against the file size, but does not validate the array contents it then trusts. shm_str_copy does memcpy(dst, arena + off, len) with off and len read raw from the mmap'd segment and unbounded, on the each, keys, values, pop, shift, take, swap, drain and cursor paths. The get path bounds off and len separately and is not affected. A local peer that can write the backing file can leave the header valid while poisoning a record's offset and length, so iterating or draining the map copies a file-controlled offset and length out of the arena, reading adjacent memory or crashing the process.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| EGOR | Data::HashMap::Shared | < 0.14 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-59142?
How severe is CVE-2026-59142?
How do I fix CVE-2026-59142?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-59137Use of uninitialized resource in Windows Event Logging Servi…5.5
- CVE-2026-59138Null pointer dereference in Microsoft Remote Registry Servic…6.5
- CVE-2026-59139Data::ReqRep::Shared versions before 0.05 for Perl allow an …9.1
- CVE-2026-5914Type Confusion in CSS in Google Chrome prior to 147.0.7727.5…8.8
- CVE-2026-59140Data::SortedSet::Shared versions before 0.03 for Perl allow …9.1
- CVE-2026-59141Data::RadixTree::Shared versions before 0.02 for Perl allow …9.1
- CVE-2026-59143Data::RoaringBitmap::Shared versions before 0.02 for Perl al…6.3
- CVE-2026-59144Data::RingBuffer::Shared versions before 0.04 for Perl allow…9.8
- CVE-2026-59145Data::Intern::Shared versions before 0.02 for Perl allow an …9.1
- CVE-2026-59146Data::SpatialHash::Shared versions before 0.02 for Perl allo…7.8
- CVE-2026-59147Data::DisjointSet::Shared versions before 0.02 for Perl allo…9.8
- CVE-2026-59148Mockoon provides way to design and run mock APIs. Prior to 9…8.8
Are you affected by CVE-2026-59142?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
