CVE-2026-59145: 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
Data::Intern::Shared versions before 0.02 for Perl allow an out-of-bounds read via unvalidated slot, reverse and arena indices in siidxfind.
The attach-time validator sivalidateheader is thorough about the header and layout (magic, version, section offsets, totalsize, count and arenaused) but does not validate the three arrays it then trusts. Every lookup in siidxfind 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 arenaused, 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 idof, 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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Data::Intern::Sharedto a version that resolves this vulnerability.Fixed in 0.02
Event History
Frequently Asked Questions
What is the severity of CVE-2026-59145?
The severity of CVE-2026-59145 is critical with a CVSS score of 9.1.
What vulnerability does CVE-2026-59145 address?
CVE-2026-59145 addresses an out-of-bounds read vulnerability in Data::Intern::Shared versions before 0.02 for Perl.
How do I fix CVE-2026-59145?
To fix CVE-2026-59145, update Data::Intern::Shared to version 0.02 or later.
What impact does CVE-2026-59145 have on applications?
CVE-2026-59145 can lead to potential information disclosure due to the out-of-bounds read.
Who is affected by CVE-2026-59145?
Any application using Data::Intern::Shared versions before 0.02 for Perl is affected by CVE-2026-59145.