Skip to content
OpenAdvisories
Unscored CVE-2022-50995 EUVD-2022-56095

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

Published Nov 25, 2026 · Assigned by CPANSec

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.

Affected products

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

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.27-1 —
Debian 13 libwww-form-urlencoded-xs-perl 0.27-1 —
Debian 12 libwww-form-urlencoded-xs-perl 0.27-1 —

References