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

Published Nov 25, 2026
·
Updated

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

parseurlencoded and parseurlencodedarrayref 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 Software

1 affected component
cpan/WWW::Form::UrlEncoded::XS<0.27

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade WWW-Form-UrlEncoded-XS to a version that resolves this vulnerability.

    Fixed in 0.27

Event History

Nov 25, 2026
CVE Published
via MITRE·10:42 PM
Data Sourced
via MITRE·10:42 PM
RemedyDescriptionWeakness
Data Sourced
via OSV·10:42 PM
DescriptionWeakness
Data Sourced
via NVD·11:17 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using WWW::Form::UrlEncoded::XS before 0.27 are exposed when they parse client-controlled query strings or request bodies with parse_urlencoded or parse_urlencoded_arrayref. A remote client can trigger the condition by supplying an empty value.

2

What does an attacker need to do to exploit it?

The attacker only needs to cause the affected parser to process an empty string. The documented impact is a process crash.

3

Are normal non-empty requests affected?

The out-of-bounds read occurs specifically when the parser checks the last byte of an empty input. The provided information does not identify an impact for non-empty inputs.

4

What should be done if upgrading is not immediately possible?

Avoid passing empty query strings or request bodies to parse_urlencoded and parse_urlencoded_arrayref, such as by checking input length before invoking those functions. Upgrade to version 0.27 when possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203