CVE-2022-50996
Description
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. parse_urlencoded returns its result as a list, pushing each decoded key and value onto the argument stack without first extending the stack to fit them. parse_urlencoded_arrayref 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 parse_urlencoded can corrupt memory and crash the process.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Fixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | libwww-form-urlencoded-xs-perl |
Fixed | 0.28-1 |
| sid | libwww-form-urlencoded-xs-perl |
Fixed | 0.28-1 |
| forky | libwww-form-urlencoded-xs-perl |
Fixed | 0.28-1 |
| bookworm | libwww-form-urlencoded-xs-perl |
Fixed | 0.28-1 |
References
- https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/commit/9c14314c51f5745da316286131df49d5a53c0bdc.patch
- https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/issues/6
- https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/pull/8
- https://metacpan.org/release/KAZEBURO/WWW-Form-UrlEncoded-XS-0.28/changes
- https://security-tracker.debian.org/tracker/CVE-2022-50996
CWEs
CWE-787
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.