CVE-2026-120632

CGI versions before 5.00 for Perl allow CPU exhaustion via a backtracking regex on the XForms multipart/related Content-Type

Published Nov 3, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

CGI Perl versions prior to 5.00 contain a regular expression that backtracks in cubic time when parsing the boundary and start parameters of a multipart/related Content-Type header. The pattern is unanchored and places a ++ on either side of the boundary capture, causing a CPU‑intensive backtracking operation when the header does not match the expected format. An attacker can trigger this by sending a POST request whose Content-Type header is extremely long; no request body is required. The result is a denial‑of‑service condition that exhausts processing cycles on the server running the CGI module.

Affected Systems

Perl CGI module installations that are older than version 5.00 will be affected when they process multipart/related requests. This includes any web application or server that loads the CGI package and accepts multipart/related Content-Type headers, regardless of the underlying web server environment.

Risk and Exploitability

The vulnerability is remote and can be triggered by any entity that can send HTTP POST requests to the affected application. The exploitation path requires only the ability to craft an oversized Content-Type header; no special privileges or credentials are needed. The EPSS score is < 1%, and the issue is not listed in the CISA KEV catalog. The CVSS score is 6.5, indicating moderate severity. However, the nature of the CPU exhaustion and the lack of a body requirement make it a low‑effort, high‑impact denial‑of‑service attack for which many potential targets could be vulnerable.

Remediation

Vendor Solution

Upgrade to CGI 5.00 or later.


Vendor Workaround

For deployments that cannot upgrade, reject Content-Type request headers longer than 1KB at the web server.


OpenCVE Recommended Actions

  • Upgrade the Perl CGI package to version 5.00 or later, which removes the unbounded backtracking bug (CWE‑1333).
  • If an upgrade is not possible, configure the web server to reject any Content-Type request header longer than 1 KB before it reaches the CGI module, providing a temporary protection against the CPU exhaustion.
  • For additional defense, validate or sanitize the Content-Type header to match expected multipart/related syntax, preventing regex backtracking (CWE‑1333).

Generated by OpenCVE AI on November 9, 2026 at 23:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Moderate

Type Values Removed Values Added
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.
Title CGI versions before 5.00 for Perl allow CPU exhaustion via a backtracking regex on the XForms multipart/related Content-Type
Weaknesses CWE-1333
References

Subscriptions

No data.

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 9, 2026, 6:48 PM
Reserved
Nov 2, 2026, 5:39 PM
Status
Deferred
Published
Nov 4, 2026, 12:17 AM
Modified
Nov 9, 2026, 7:16 PM
Severity
Moderate
Public date
Nov 3, 2026, 11:40 PM