# CVE-2026-12844: List::SomeUtils::XS versions before 0.59 for Perl have a heap buffer overflow in the pairwise function

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 46% of CVEs (2026-11-30)
- Published: 2026-06-25T15:26:09.331Z
- Modified: 2026-10-25T22:10:00.150Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- List-SomeUtils-XS: before 0.59

## References

- <https://github.com/houseabsolute/List-SomeUtils-XS/commit/22549f78669b780d6aa338a2d2e49a3dedfffaa6.patch> (patch)
- <https://metacpan.org/release/DROLSKY/List-SomeUtils-XS-0.59/changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/06/25/11>

## Sources

- CVE List: [CVE-2026-12844](https://www.cve.org/CVERecord?id=CVE-2026-12844), CVE Terms of Use, modified 2026-06-25
- NVD: [CVE-2026-12844](https://nvd.nist.gov/vuln/detail/CVE-2026-12844), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-12844 · Whole record: https://cve.day/CVE-2026-12844.json · Rebuilt by cve.day 2026-11-25T22:59:26.374Z
