CVE-2026-59142: 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

Published Jul 21, 2026
·
Updated

Data::HashMap::Shared versions before 0.14 for Perl allow an out-of-bounds read via an unvalidated arena offset and length in shmstrcopy.

The attach-time validator shmvalidateheader checks the header scalars and region layout against the file size, but does not validate the array contents it then trusts. shmstrcopy 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.

Affected Software

1 affected component
CPAN Data::HashMap::Shared<0.14

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Data::HashMap::Shared to a version that resolves this vulnerability.

    Fixed in 0.14

Event History

Jul 21, 2026
CVE Published
via MITRE·07:03 PM
Data Sourced
via MITRE·07:03 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-59142?

CVE-2026-59142 has a risk score of 30, indicating a significant security vulnerability.

2

How do I fix CVE-2026-59142?

To fix CVE-2026-59142, upgrade to Data::HashMap::Shared version 0.14 or later.

3

What is the nature of the vulnerability in CVE-2026-59142?

CVE-2026-59142 allows an out-of-bounds read due to unvalidated arena offset and length in the shm_str_copy function.

4

Which versions are affected by CVE-2026-59142?

CVE-2026-59142 affects all versions of Data::HashMap::Shared prior to 0.14.

5

What happens if CVE-2026-59142 is exploited?

Exploitation of CVE-2026-59142 may lead to unauthorized access to memory or disclosure of sensitive data due to out-of-bounds reads.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203