CVE-2026-12844
Deferred Deferred - Pending Action

Heap Buffer Overflow in List::SomeUtils::XS for Perl

Vulnerability report for CVE-2026-12844, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-25

Last updated on: 2026-06-25

Assigner: CPANSec

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-25
Last Modified
2026-06-25
Generated
2026-07-16
AI Q&A
2026-06-25
EPSS Evaluated
2026-07-14
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
houseabsolute list_someutils_xs to 0.59 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.
CWE-122 A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a heap buffer overflow in the pairwise function of List::SomeUtils::XS versions before 0.59 for Perl. The pairwise() function collects values returned by a block into a heap buffer sized to the longer input array. However, it grows the buffer by a single quadrupling instead of repeatedly expanding it in a loop. If the block returns more than four times the current allocation in one call, the buffer is outgrown and the function writes past the end of the buffer, causing heap corruption.

Compliance Impact

The provided information does not specify any direct impact of this heap buffer overflow vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Impact Analysis

The heap buffer overflow can lead to heap corruption, which may cause crashes, unexpected behavior, or potentially allow an attacker to execute arbitrary code or escalate privileges if exploited. Any caller of the pairwise() function that returns a very large list in one invocation risks corrupting the heap, which can compromise the stability and security of the application using this module.

Mitigation Strategies

To mitigate this vulnerability, update List::SomeUtils::XS to version 0.59 or later where the heap buffer overflow in the pairwise function has been fixed.

The patch modifies the memory allocation logic to dynamically expand the buffer size in a loop until it can accommodate large return values, preventing the overflow.

Detection Guidance

This vulnerability is a heap buffer overflow in the pairwise function of List::SomeUtils::XS versions before 0.59 for Perl. Detection involves identifying if your system is running a vulnerable version of the List::SomeUtils::XS Perl module.

To detect the vulnerability, you can check the installed version of List::SomeUtils::XS on your system using Perl commands.

  • Run the following command in your terminal to check the installed version of List::SomeUtils::XS:
  • perl -MList::SomeUtils::XS -e 'print $List::SomeUtils::XS::VERSION, "\n";'

If the version is earlier than 0.59, your system is vulnerable to this heap buffer overflow.

Additionally, monitoring for crashes or abnormal behavior in Perl scripts using the pairwise function from this module may indicate exploitation attempts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-12844. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart