CVE-2026-120640 CGI versions before 5.00 for Perl allow the POSTDATA, PUTDATA, PATCHDATA and XForms:Model parameters to be set from the query string or form fields.

Medium 6.5 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-120640?

CVE-2026-120640 is a medium-severity vulnerability in CGI, published on 3 Nov 2026.

Official description

CGI versions before 5.00 for Perl allow the POSTDATA, PUTDATA, PATCHDATA and XForms:Model parameters to be set from the query string or form fields.

CGI stores a non-form request body under POSTDATA, PUTDATA or PATCHDATA, and an XForms body under XForms:Model, but also accepts these names from the query string, a form field or a multipart part, so an application cannot tell a client-sent value from the real body.

A cross-site HTML form can post POSTDATA={"admin":true} to an endpoint that reads JSON from param('POSTDATA'), a request forgery that needs no CORS preflight.

Weakness: CWE-352

Which versions are affected by CVE-2026-120640?

1 open source package ship an affected version, including CGI.

PackageAffectedFixed in
CGI cpan
pkg:cpan/CGI
All versions5.00
Status by vendor (4)
WhoReleaseStatusPackages
Red Hat8deferredperl-CGI
Red Hat9deferredperl-CGI
Red Hat10deferredperl-CGI
Red Hatels/7deferredperl-CGI

How do I fix CVE-2026-120640?

Upgrade CGI to 5.00 or later.

Is CVE-2026-120640 being exploited?

There is no known exploitation of CVE-2026-120640 in the wild and no public exploit code.

Sources

Also known as AZL-112807, DEBIAN-CVE-2026-120640, DHI-7wxi-ae7x-kkfj-fu2e, GHSA-2xpc-hf7c-cgvh, UBUNTU-CVE-2026-120640.

Is CVE-2026-120640 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free