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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |