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

Published Nov 25, 2026
·
Updated

WWW::Form::UrlEncoded::XS versions before 0.28 for Perl write past the end of the Perl argument stack when parseurlencoded returns many pairs.

parseurlencoded returns its result as a list, pushing each decoded key and value onto the argument stack without first extending the stack to fit them. parseurlencodedarrayref 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 parseurlencoded can corrupt memory and crash the process.

Affected Software

1 affected component
cpan/WWW-Form-UrlEncoded-XS<0.28

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.28

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

Which applications are exposed to remote attack?

Applications that accept attacker-controlled query strings or request bodies and pass them to parse_urlencoded are exposed. A remote client can trigger memory corruption and crash the process by sending input containing many key-value pairs.

2

Are all parsing APIs in this package affected?

No. The issue affects parse_urlencoded, which returns decoded pairs as a list. parse_urlencoded_arrayref returns an array reference and is not affected.

3

What can be done if an immediate upgrade is not possible?

Avoid using parse_urlencoded for untrusted request data and use parse_urlencoded_arrayref instead. Limiting the number of accepted query or body pairs can also reduce exposure where such limits can be enforced.

4

How can I determine whether an application is affected?

Check whether it uses WWW::Form::UrlEncoded::XS before version 0.28 and calls parse_urlencoded on client-controlled query strings or request bodies. Calls to parse_urlencoded_arrayref are not affected.

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