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.
Published: 2026-11-03
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service (CPU exhaustion)
Action: Patch
AI Analysis

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. EPSS information is not available, and the issue is not listed in the CISA KEV catalog. The CVSS score is 5.3, 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.

Generated by OpenCVE AI on November 4, 2026 at 14:08 UTC.

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.
  • 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.
  • Avoid allowing multipart/related Content-Type headers in applications that use older CGI versions, and validate or sanitize Content-Type headers to ensure they conform to expected patterns.

Generated by OpenCVE AI on November 4, 2026 at 14:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 04 Nov 2026 12:15:00 +0000

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


Wed, 04 Nov 2026 00:00:00 +0000

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.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-11-03T23:40:01.071Z

Reserved: 2026-11-02T17:39:55.528Z

Link: CVE-2026-120632

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-04T00:17:24.320

Modified: 2026-11-04T00:17:24.320

Link: CVE-2026-120632

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-11-03T23:40:01Z

Links: CVE-2026-120632 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-11-04T14:15:15Z

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity