CVE-2026-85644
Received Received - Intake

XS::Parse::Infix Perl Array Reference Validation Bypass

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

Publication date: 2026-09-28

Last updated on: 2026-09-28

Assigner: CPANSec

Description

XS::Parse::Infix versions from 0.40 through 0.49 for Perl treat a number as an array reference. The wrapper function XS::Parse::Infix generates for a list-associative infix operator checks whether arguments are array references, but it tests using SvRV() rather than SvROK(). SvRV() reads a union slot that only holds a referent once SvROK(sv) is true, so the guard never validates that it is a reference. For an IV or NV that slot holds the number itself, SvRV() returns the caller's value and SvTYPE() dereferences it at offset 12. This will generally result in a segmentation fault. An application that hands the wrapper a list built from decoded input (for example, from JSON) lets whoever supplies a number in that list choose the address that the interpreter dereferences. An ordinary string's byte 12 is rarely SVt_PVAV so the guard croaks by luck, but an attacker-crafted string carrying 0x0b there passes, and the buffer is then used as an AV head, with AvARRAY taken from bytes 16-23 and its entries pushed onto the Perl stack as live SVs. A simple proof-of-concept uses the zip operator: use Syntax::Operator::Zip 'zip'; my @args = ([1], 2); zip(@args);

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-28
Last Modified
2026-09-28
Generated
2026-09-28
AI Q&A
2026-09-28
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-843 The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

XS::Parse::Infix versions 0.40 to 0.49 for Perl incorrectly handle numbers as array references due to a flawed check using SvRV() instead of SvROK(). This causes the function to dereference arbitrary memory addresses, leading to segmentation faults. Attackers can exploit this by providing crafted input to control memory access.

Detection Guidance

This vulnerability is specific to Perl modules using XS::Parse::Infix versions 0.40 through 0.49. Detection requires checking installed Perl modules and their versions. Use commands like 'cpan -D XS::Parse::Infix' or 'perl -MXS::Parse::Infix -e "print $XS::Parse::Infix::VERSION"

Impact Analysis

This vulnerability can crash Perl applications using affected XS::Parse::Infix versions, potentially allowing attackers to execute arbitrary code or access sensitive memory. Systems processing untrusted input (e.g., JSON) are at higher risk of exploitation.

Compliance Impact

This vulnerability does not directly affect compliance with standards like GDPR or HIPAA as it is a technical flaw in Perl's XS::Parse::Infix module that could lead to segmentation faults or arbitrary code execution. Compliance impacts would depend on whether the affected software is used in systems handling regulated data.

Mitigation Strategies

Upgrade XS::Parse::Infix to a version outside the vulnerable range (0.40-0.49). If upgrading is not possible, consider removing or replacing the module entirely. Review any Perl applications using Syntax::Operator::Zip or similar modules for potential exposure.

Chat Assistant

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

EPSS Chart