Skip to content

CVE-2022-50995 WWW::Form::UrlEncoded::XS versions before 0.27 for Perl read one byte before the input buffer when parsing an empty string

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

Description

WWW::Form::UrlEncoded::XS versions before 0.27 for Perl read one byte before the input buffer when parsing an empty string.

parse_urlencoded and parse_urlencoded_arrayref check for a trailing "&" or ";" by reading the last byte of the input, without first checking that the input has any bytes.

A remote client that sends an empty query string or request body to an application parsing it with this module can crash the process.

Upgrade path

4 packages: 4 fixed.

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

Affected products

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

References