CVE-2026-120650CGI versions before 5.00 for Perl allow memory, CPU and disk exhaustion via missing or…
CGI versions before 5.00 for Perl allow memory, CPU and disk exhaustion via missing or unenforced request size, parameter and upload limits. $CGI::POST_MAX defaults to no limit, and when set is not enforced for chunked multipart bodies or for the boundary line of a multipart body without a boundary= parameter. Bodies saved as PUTDATA, POSTDATA or PATCHDATA uploads are read into memory in one go, and nothing limits the number of parameters or uploads.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libcgi-pm-perl | Fix pending | UBUNTU-CVE-2026-120650 | |
| Ubuntu 26.04 | libcgi-pm-perl | Under investigation | UBUNTU-CVE-2026-120650 | |
| Ubuntu 24.04 | libcgi-pm-perl | Under investigation | UBUNTU-CVE-2026-120650 | |
| Ubuntu 22.04 | libcgi-pm-perl | Under investigation | UBUNTU-CVE-2026-120650 | |
| Ubuntu 20.04 | libcgi-pm-perl | Fix pending | UBUNTU-CVE-2026-120650 | |
| Ubuntu 18.04 | libcgi-pm-perl | Fix pending | UBUNTU-CVE-2026-120650 | |
| Ubuntu 16.04 | libcgi-pm-perl | Fix pending | UBUNTU-CVE-2026-120650 | |
| Debian 14 | libcgi-pm-perl | Fixed | 5.02-1 | DEBIAN-CVE-2026-120650 |
| Debian 13 | libcgi-pm-perl | Fix pending | DEBIAN-CVE-2026-120650 | |
| Debian 12 | libcgi-pm-perl | Fix pending | DEBIAN-CVE-2026-120650 | |
| Red Hat Enterprise Linux 10 | perl-CGI | Fixed Affected | 0:4.61-5.el10_3.1 | RHSA-2026:99212 |
| Red Hat Enterprise Linux 9 | perl-CGI | Fixed Affected | 0:4.51-5.el9_9.1 | RHSA-2026:99215 |
| Red Hat Enterprise Linux 8 | perl-CGI | Fixed Affected | 0:4.38-3.el8_10 | RHSA-2026:99849 |
| Red Hat Enterprise Linux 7 | perl-CGI | Fix pending Affected | ||
| AlmaLinux 10 | perl-CGI | Fixed | 4.61-5.el10_3.1 | ALSA-2026:99212 |
| AlmaLinux 9 | perl-CGI | Fixed | 4.51-5.el9_9.1 | ALSA-2026:99215 |
| AlmaLinux 8 | perl-CGI | Fixed | 4.38-3.el8_10 | ALSA-2026:99849 |
| Rocky Linux 10 | perl-CGI | Fixed | 0:4.61-5.el10_3.1 | RLSA-2026:99212 |
| Rocky Linux 9 | perl-CGI | Fixed | 0:4.51-5.el9_9.1 | RLSA-2026:99215 |
| Rocky Linux 8 | perl-CGI | Fixed | 0:4.38-3.el8_10 | RLSA-2026:99849 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- CGI: affected: before 5.00; fixed in
5.00
Solution: Upgrade to CGI 5.00 or later.
Workaround: For deployments that cannot upgrade, limit the request body size at the web server and set $CGI::POST_MAX.
Vendor advisories:
- https://metacpan.org/release/LEEJO/CGI-5.00/changes (release-notes)
- https://github.com/leejo/CGI.pm/commit/17b838dc14d2b82ae6c7e76f66ec2c3f3b08038b.patch (patch)
- https://github.com/leejo/CGI.pm/commit/f3febefe63fe3881d8c3ae10fa83ca8ec950b959.patch (patch)
- https://github.com/leejo/CGI.pm/commit/277baeb74fde7bce975a7bd0a1f98dcf1b9b2050.patch (patch)
- https://github.com/leejo/CGI.pm/commit/8940a74e53a41563f72813b45f99cceaaa4c92e8.patch (patch)
References
- https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm
- https://metacpan.org/release/LEEJO/CGI-5.00/changes
- https://github.com/leejo/CGI.pm/commit/17b838dc14d2b82ae6c7e76f66ec2c3f3b08038b.patch
- https://github.com/leejo/CGI.pm/commit/f3febefe63fe3881d8c3ae10fa83ca8ec950b959.patch
- https://github.com/leejo/CGI.pm/commit/277baeb74fde7bce975a7bd0a1f98dcf1b9b2050.patch
- https://github.com/leejo/CGI.pm/commit/8940a74e53a41563f72813b45f99cceaaa4c92e8.patch
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.