CPANSA-WWW-Form-UrlEncoded-XS-2022-50995: WWW-Form-UrlEncoded-XS vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-11-25T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-11-25T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | Severity | ||
| Original language | Language | en | |
| Also referred to | |||
Vulnerability 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.
Vulnerabilities
CVE-2022-50995
Vulnerability DescriptionWWW::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.
| Weakness | CWE-127 : Buffer Under-read |
|---|
Product status
Known affected
| Product | Score | ||||
|---|---|---|---|---|---|
| WWW-Form-UrlEncoded-XS less than 0.27 |
|
Fixed
- WWW-Form-UrlEncoded-XS greater than or equal 0.27
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-WWW-Form-UrlEncoded-XS-2022-50995 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-www-form-urlencoded-xs-2022-50995.json - https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/commit/3a0a35e7509b42667b19ee027807253adaf07333.patch external
https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/commit/3a0a35e7509b42667b19ee027807253adaf07333.patch - https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/pull/7 external
https://github.com/kazeburo/WWW-Form-UrlEncoded-XS/pull/7 - https://metacpan.org/release/KAZEBURO/WWW-Form-UrlEncoded-XS-0.27/changes external
https://metacpan.org/release/KAZEBURO/WWW-Form-UrlEncoded-XS-0.27/changes - CVE-2022-50995 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2022-50995
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Wed Nov 25 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/