CVE-2026-120635

CGI versions before 5.00 for Perl allow form fields to be smuggled past proxies and WAFs via multipart parsing that differs from the RFCs

Published Nov 3, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
CGI versions before 5.00 for Perl allow form fields to be smuggled past proxies and WAFs via multipart parsing that differs from the RFCs.

The multipart/form-data parser matches the boundary anywhere rather than at the start of a line, uses the boundary without its leading -- for some client-supplied User-Agent values, finds the Content-Disposition name and filename inside the quoted values of other parameters, and corrupts parts when the boundary nears the 4096-byte read size.

Analysis

AI-generated

Technical impact

CGI for Perl versions before 5.00 parse multipart/form‑data in a manner that does not adhere to RFC 2046. The parser accepts boundary delimiters that appear anywhere in the payload, may omit the required leading double dashes for certain User‑Agent values, and extracts the name and filename from quoted values of unrelated parameters. When the boundary approaches the 4096‑byte read limit, the parser can corrupt request parts. These deviations allow attackers to construct multipart requests that contain form fields not detected by upstream edge proxies or Web Application Firewalls, effectively injecting data that would normally be rejected. The flaw represents a control‑data handling vulnerability (CWE‑436) and also introduces missing error handling around boundary parsing (CWE‑444), potentially leading to undefined behavior or crashes.

Affected Systems

The LEEJO CGI module for Perl with any release older than 5.00 is affected. Any Perl‑based web application that imports this module directly or indirectly via other libraries or frameworks may be at risk unless it has migrated to a fixed release. Because the module is widely used for parsing form data, many sites that rely on it remain susceptible.

Risk and Exploitability

Exploitation requires only network access to send an HTTP POST request with a crafted multipart body; no credentials or privileged context are needed. The CVSS score is 8.1. The EPSS score is < 1%, indicating a low but non‑zero likelihood of exploitation, and the vulnerability is not included in CISA’s KEV catalog, so the documented prevalence of exploitation is unknown. The likely attack vector is an attacker originating from the network perimeter constructing malicious multipart requests that pass through proxies or Web Application Firewalls and reach the CGI parser. If such a request is processed, the server may accept injected data that bypasses upstream controls, and the missing boundary handling (CWE‑444) could also cause application crashes or other undefined behavior.

Remediation

Vendor Solution

Upgrade to CGI 5.00 or later.


OpenCVE Recommended Actions

  • Upgrade the CGI module to version 5.00 or later, which implements RFC‑compliant multipart parsing.
  • Apply the patch commits available in the LEEJO CGI repository to correct the boundary handling logic when upgrading is not immediately possible.
  • Validate multipart boundaries at the application level—reject any request that does not place the boundary string at the start of a line or includes the required leading double dashes.

Generated by OpenCVE AI on November 9, 2026 at 23:02 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:L/A:N'}

cvssV3_1

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

Type Values Removed Values Added
Weaknesses CWE-444
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:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Description CGI versions before 5.00 for Perl allow form fields to be smuggled past proxies and WAFs via multipart parsing that differs from the RFCs. The multipart/form-data parser matches the boundary anywhere rather than at the start of a line, uses the boundary without its leading -- for some client-supplied User-Agent values, finds the Content-Disposition name and filename inside the quoted values of other parameters, and corrupts parts when the boundary nears the 4096-byte read size.
Title CGI versions before 5.00 for Perl allow form fields to be smuggled past proxies and WAFs via multipart parsing that differs from the RFCs
Weaknesses CWE-436
References

Subscriptions

No data.

Weaknesses
  • CWE-436

    Interpretation Conflict

  • CWE-444

    Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 9, 2026, 7:08 PM
Reserved
Nov 2, 2026, 5:40 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