Skip to main content

Data::HashMap::Shared CVE-2026-59142

| EUVDEUVD-2026-46355 CRITICAL
Out-of-bounds Read (CWE-125)
2026-07-21 9b29abf9-4ab0-4765-b253-1875cd9b441e GHSA-4m33-8fcc-g5rp
9.1
CVSS 3.1 · Vendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local write access to backing file
  2. Delivery
    Poison record offset and length, keep header valid
  3. Exploit
    Victim iterates or drains the map
  4. Execution
    shm_str_copy memcpy reads out of bounds
  5. Impact
    Leak adjacent memory or crash process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires a local peer with write access to the mmap'd shared-memory backing file used by Data::HashMap::Shared, plus a victim process that then traverses the map via one of the affected accessors (each, keys, values, pop, shift, take, swap, drain, or cursor). Exploitation is LIMITED by: (1) the attacker must be able to write the backing file - no purely remote or network-only path exists despite the AV:N CVSS scoring; (2) the vulnerable code must be reached through an iterating/draining accessor - the get path is bounds-checked and immune; (3) affected versions are only those before 0.14. The attack keeps shm_validate_header satisfied because that validator checks only header scalars and region layout, not the array record contents.

Impact

The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, score 9.1) conflicts materially with the description: exploitation requires a local peer with write access to the shared-memory backing file, which is a local, privileged precondition rather than remote unauthenticated network access - treat the AV:N/PR:N scoring as overstated and the realistic vector as local with write privilege to the segment. Corroborating this, EPSS is low (0.16%, 5th percentile), the CVE is not in CISA KEV, and no public POC is referenced, so this is not a mass-exploitation issue. The genuine impact is high once the local precondition is met - out-of-bounds reads leak adjacent memory (C:H) and can crash the process (A:H) - but exploitability is gated by the requirement to write the backing file, making this a targeted local threat rather than a broad remote one. Verify the attack vector with the vendor: CVSS indicates network vector while the description clearly implies local file-write access.

Exploit ScenarioDerived

On a host where a shared-memory map is used across processes of differing trust, a local user or compromised low-privilege process with write access to the backing file edits a record so its stored offset and length point outside the arena while leaving the header valid. When a privileged consumer next iterates or drains the map, shm_str_copy memcpy's the out-of-bounds region, leaking adjacent process memory (potentially secrets or pointers) or crashing the consumer. No public POC is referenced at time of analysis, and the local write precondition (CVSS AC:L) keeps complexity low once access is obtained.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 22, 2026

Out-of-bounds read in the Perl module Data::HashMap::Shared before 0.14 lets a local peer that can write the shared-memory backing file corrupt per-record offset and length values, causing the map to copy attacker-controlled regions out of the arena. The flaw affects the each, keys, values, pop, shift, take, swap, drain and cursor code paths and can leak adjacent process memory or crash the process. There is no public exploit identified at time of analysis and EPSS exploitation probability is low (0.16%, 5th percentile).

RemediationAI

Vendor-released patch: 0.14 - upgrade Data::HashMap::Shared to version 0.14 or later, which adds bounds validation on the record offset and length in the affected copy path (see the 0.13-to-0.14 diff of shm_generic.h at https://metacpan.org/release/EGOR/Data-HashMap-Shared-0.14/diff/EGOR/Data-HashMap-Shared-0.13#shm_generic.h and the changelog at https://metacpan.org/release/EGOR/Data-HashMap-Shared-0.14/changes). Where immediate upgrade is not possible, restrict filesystem write permissions on the shared-memory backing file so only the trusted owning process can modify it (remove group/other write and place the file in a directory not writable by untrusted local users), which removes the poisoning precondition at the cost of preventing legitimate multi-writer sharing across differently-privileged accounts; additionally, prefer the get accessor over the each/keys/values/pop/shift/take/swap/drain/cursor paths on untrusted maps, since get independently bounds off and len and is not affected, though this limits functionality to single-key lookups.

Affected VersionsENISA

Data::HashMap::Shared 0 <0.14

Affected Packages

euvd data_hashmap_shared fix: 0.14

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Data::HashMap::Shared is a Perl module that implements a hash map backed by an mmap'd shared-memory segment (the arena), enabling multiple processes to share a map through a common backing file. The root cause is CWE-125 (out-of-bounds read): the attach-time validator shm_validate_header verifies header scalars and region layout against the file size but never validates the array record contents it subsequently trusts. The copy helper shm_str_copy performs memcpy(dst, arena + off, len) with the offset (off) and length (len) read raw and unbounded from the mmap'd segment, so any path that dereferences a record via that helper (each, keys, values, pop, shift, take, swap, drain, cursor) reads from a file-controlled position. The separate get path independently bounds off and len and is therefore not affected.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
vuln.today AI 7.1 HIGH

Exploitation requires local write access to the shared-memory backing file, so AV:L and PR:L; the out-of-bounds read discloses adjacent memory (C:H) and can crash the process (A:H), with no integrity impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e).

CVSS VectorVendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 22, 2026 - 20:22 NVD
9.1 (CRITICAL)
Patch available
Jul 21, 2026 - 20:18 EUVD
CVE Published
Jul 21, 2026 - 19:17 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 21, 2026 - 19:17 cve.org
CRITICAL 9.1

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

The Perl library Data::HashMap::Shared has a critical flaw in versions before 0.14 that could expose confidential data or crash services when exploited by users with local system access. While the risk of actual exploitation is low (0.2%), the severity of potential impact on data confidentiality and service availability requires urgent remediation. A vendor patch is immediately available.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Rare
obscure single-author CPAN Perl module, negligible enterprise footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy