Skip to content
OpenAdvisories
Unscored CVE-2022-50996 EUVD-2022-56094

WWW::Form::UrlEncoded::XS versions before 0.28 for Perl write past the end of the Perl argument stack when parse_urlencoded returns many pairs

Published Nov 25, 2026 · Assigned by CPANSec

Description

WWW::Form::UrlEncoded::XS versions before 0.28 for Perl write past the end of the Perl argument stack when parse_urlencoded returns many pairs.

parse_urlencoded returns its result as a list, pushing each decoded key and value onto the argument stack without first extending the stack to fit them. parse_urlencoded_arrayref returns an array reference and is not affected.

A remote client that sends a query string or request body with many pairs to an application parsing it with parse_urlencoded can corrupt memory and crash the process.

Affected products

VendorProductAffectedFixed
— WWW-Form-UrlEncoded-XS < 0.28 0.28

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libwww-form-urlencoded-xs-perl 0.28-1 —
Debian 13 libwww-form-urlencoded-xs-perl 0.28-1 —
Debian 12 libwww-form-urlencoded-xs-perl 0.28-1 —

References