Skip to content

CVE-2022-50996 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

Unknown EPSS 0.37%
Published
Updated
Exploit status
No public exploit known
Technology
Debian

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.

Upgrade path

4 packages: 4 fixed.

PackageAffectedFixed inStatus
cpan WWW-Form-UrlEncoded-XS < 0.28 0.28 Fixed
debian/libwww-form-urlencoded-xs-perl(Debian 12) < 0.28-1 0.28-1 Fixed
debian/libwww-form-urlencoded-xs-perl(Debian 13) < 0.28-1 0.28-1 Fixed
debian/libwww-form-urlencoded-xs-perl(Debian 14) < 0.28-1 0.28-1 Fixed

Affected products

ProductAffected versionsFixed in
cpan WWW-Form-UrlEncoded-XS < 0.28 0.28
debian/libwww-form-urlencoded-xs-perl(Debian:12) < 0.28-1 0.28-1
debian/libwww-form-urlencoded-xs-perl(Debian:14) < 0.28-1 0.28-1
debian/libwww-form-urlencoded-xs-perl(Debian:13) < 0.28-1 0.28-1

References