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.
{
"cna_assigner": "CPANSec",
"cwe_ids": [
"CWE-127"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50995.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.27"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "3a0a35e7509b42667b19ee027807253adaf07333"
}
],
"source": "REFERENCES_COMMIT"
}
]
}