All reports
Medium

perl-CGI: perl-CGI: Denial of Service via crafted multipart/related Content-Type header

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-120632

Probability of exploitation in the next 30 days: 0.51%

FIRST EPSS · 2026-11-22

Description

CGI versions before 5.00 for Perl allow CPU exhaustion via a backtracking regex on the XForms multipart/related Content-Type. When a POST Content-Type contains multipart/related, the boundary and start parameters are extracted with an unanchored pattern that puts .+ on either side of the boundary capture, which backtracks in cubic time on a header that does not match. No request body is needed.

A flaw was found in the Perl CGI module. This vulnerability allows a remote attacker to cause a Denial of Service (DoS) by sending a specially crafted HTTP request. Due to an inefficient regular expression used when parsing multipart/related Content-Type headers, processing non-matching headers triggers catastrophic backtracking. This results in excessive CPU resource exhaustion and renders the application unresponsive, even without a request body.