CVE-2026-12844: List::SomeUtils::XS versions before 0.59 for Perl have a heap buffer overflow in the pairwise function
List::SomeUtils::XS versions before 0.59 for Perl have a heap buffer overflow in the pairwise function.
pairwise() collects the values returned by the block into a heap buffer sized to the longer input array, then grows the buffer before each copy with a single quadrupling (alloc <<= 2) instead of a loop. A block call that returns more than four times the current allocation in one invocation outgrows that one quadrupling, and the copy writes past the end of the buffer.
Any caller of pairwise() whose block returns, for a single pair, more than four times the longer input array's length writes past the buffer and corrupts the heap.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
List::SomeUtils::XSto a version that resolves this vulnerability.Fixed in 0.59
Event History
Frequently Asked Questions
What is the severity of CVE-2026-12844?
CVE-2026-12844 has a high severity rating of 7.5 according to the CVSS 3.1 scoring system.
What vulnerability does CVE-2026-12844 describe?
CVE-2026-12844 describes a heap buffer overflow in the pairwise function of List::SomeUtils::XS versions before 0.59 for Perl.
How do I fix CVE-2026-12844?
To fix CVE-2026-12844, upgrade List::SomeUtils::XS to version 0.59 or later.
What impact does CVE-2026-12844 have on my system?
CVE-2026-12844 can lead to potential denial of service due to the heap buffer overflow vulnerability.
Is CVE-2026-12844 exploitable?
Yes, CVE-2026-12844 is considered exploitable due to the nature of heap buffer overflows.