Bug 2584558 (CVE-2022-50995)

Summary: CVE-2022-50995 perl-www-form-urlencoded-xs: perl-www-form-urlencoded-xs: Denial of Service via out-of-bounds read on empty input
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerability-draftAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in WWW::Form::UrlEncoded::XS. When parsing an empty string, the parser attempts to read the last byte of input without verifying that the buffer contains data, leading to an out-of-bounds read. A remote attacker can exploit this vulnerability by submitting an empty query string or request body, causing the application process to crash and resulting in a Denial of Service (DoS).
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-25 22:51:27 UTC
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.