CVE-2026-120632
Deferred Deferred - Pending Action

CGI for Perl CPU Exhaustion via Regex Backtracking

Vulnerability report for CVE-2026-120632, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-04

Last updated on: 2026-11-09

Assigner: CPANSec

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-04
Last Modified
2026-11-09
Generated
2026-11-13
AI Q&A
2026-11-04
EPSS Evaluated
2026-11-12
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
leejo cgi 4.72

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1333 The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a denial-of-service (DoS) flaw in CGI.pm versions before 5.00 for Perl. It occurs when processing XForms multipart/related Content-Type headers. The issue involves a regex pattern that uses .+ between repeated groups, causing cubic backtracking (O(n^3) time complexity) when handling crafted headers with many boundary parameters but no valid start parameter. This can consume significant CPU time without requiring a request body.

Detection Guidance

Detecting this vulnerability requires checking if your system uses a vulnerable version of CGI.pm. Inspect Perl scripts or modules for CGI.pm usage and verify the version against the patched release. Monitor CPU usage spikes during HTTP requests with multipart/related Content-Type headers containing crafted boundary parameters.

Impact Analysis

An attacker could exploit this to cause high CPU usage on a server by sending a specially crafted header. This could slow down or crash the server, disrupting services. The attack does not require a request body, making it easier to execute remotely.

Compliance Impact

This vulnerability causes CPU exhaustion via regex backtracking, leading to denial-of-service (DoS) conditions. For compliance, this could impact availability requirements under GDPR (data processing integrity) and HIPAA (service continuity). Unpatched systems may fail to meet uptime or responsiveness standards.

Mitigation Strategies

Immediately update CGI.pm to version 5.00 or later. If updating is not possible, disable CGI.pm usage in web applications or implement strict input validation for Content-Type headers. Apply network-level rate limiting to prevent abuse of the regex parsing issue.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-120632. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...