CVE-2026-85644XS::Parse::Infix versions from 0.40 through 0.49 for Perl treat a number as an array…
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);
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Debian has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libxs-parse-keyword-perl | Fixed | 0.49-1ubuntu1 | UBUNTU-CVE-2026-85644 |
| Ubuntu 26.04 | libxs-parse-keyword-perl | Fixed | 0.49-1ubuntu0.1 | UBUNTU-CVE-2026-85644 |
| Ubuntu 24.04 | libxs-parse-keyword-perl | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | libxs-parse-keyword-perl | Not affected vulnerable_code_not_present | ||
| Debian 14 | libxs-parse-keyword-perl | Fixed | 0.51-1 | DEBIAN-CVE-2026-85644 |
| Debian 13 | libxs-parse-keyword-perl | Fix pending | DEBIAN-CVE-2026-85644 | |
| Red Hat Enterprise Linux 10 | perl-XS-Parse-Keyword | Not affected | ||
| Red Hat Enterprise Linux 10 | perl-XS-Parse-Keyword-Builder | Not affected |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- XS-Parse-Keyword: affected: 0.40 to 0.49
Solution: Upgrade to XS-Parse-Keyword 0.50 or later.
Workaround: For deployments that cannot upgrade, ensure that correct arguments (only array references where they are expected) are passed to list-associative operators that are defined with XS::Parse::Infix, such as those in Syntax::Operator::Zip.
Vendor advisories:
References
- https://metacpan.org/release/PEVANS/XS-Parse-Keyword-0.50/changes
- https://metacpan.org/release/PEVANS/XS-Parse-Keyword-0.50/diff/PEVANS/XS-Parse-Keyword-0.49#src/infix.c
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.