Vulnerability · Published Nov 3, 2026 · Assigned by CPANSec
CVE-2026-120635CGI versions before 5.00 for Perl allow form fields to be smuggled past proxies and WAFs via multipart parsing that differs from the RFCs
Unrated
In plain English
A security flaw in CGI. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libcgi-pm-perl | no fix listed | DEBIAN-CVE-2026-120635 |
| Debian:13 | libcgi-pm-perl | no fix listed | DEBIAN-CVE-2026-120635 |
| Debian:14 | libcgi-pm-perl | no fix listed | DEBIAN-CVE-2026-120635 |
| Ubuntu:22.04:LTS | libcgi-pm-perl | no fix listed | UBUNTU-CVE-2026-120635 |
| Ubuntu:24.04:LTS | libcgi-pm-perl | no fix listed | UBUNTU-CVE-2026-120635 |
| Ubuntu:26.04:LTS | libcgi-pm-perl | no fix listed | UBUNTU-CVE-2026-120635 |
| Ubuntu:26.10 | libcgi-pm-perl | no fix listed | UBUNTU-CVE-2026-120635 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| CGI | 0 – before 5.00 |
Weakness: CWE-436
References
- https://www.rfc-editor.org/rfc/rfc2046#section-5.1.1 technical-description
- https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm technical-description
- https://metacpan.org/release/LEEJO/CGI-5.00/changes release-notes
- https://github.com/leejo/CGI.pm/commit/f719fc08e8756708bcd4f1e357d5c0f8702f85dd.patch patch
- https://github.com/leejo/CGI.pm/commit/cbf04979f9974458ac223793bbd9d0b6a772aa66.patch patch
- https://github.com/leejo/CGI.pm/commit/fe9516804d59a3774e280c15dbb7072fbd0ba5f1.patch patch
- https://github.com/leejo/CGI.pm/commit/e0ef8f4248c6ae3025749040d8595d206b6a1b49.patch patch