{"id":"CVE-2026-120640","aliases":["AZL-112807","DEBIAN-CVE-2026-120640","EUVD-2026-116607","GHSA-2xpc-hf7c-cgvh","UBUNTU-CVE-2026-120640","openSUSE-SU-2026:12465-1"],"status":"published","title":"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","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.\n\nCGI 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.\n\nA 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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-12","score":0.00167,"percentile":0.06053,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-352"],"published":"2026-11-03T23:40:33Z","modified":"2026-11-09T19:39:30Z","affected":[{"source":"osv","ecosystem":"Azure Linux:3","package":"perl-CGI","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"4.60-1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libcgi-pm-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.55-1","4.57-1","4.59-1","4.60-1","4.61-1","4.62-1","4.63-1","4.64-1","4.65-1","4.66-1","4.67-1","4.68-1","4.70-1","4.71-1","4.72-1","5.02-1"]},{"source":"osv","ecosystem":"Debian:13","package":"libcgi-pm-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.68-1","4.70-1","4.71-1","4.72-1","5.02-1"]},{"source":"osv","ecosystem":"Debian:14","package":"libcgi-pm-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.68-1","4.70-1","4.71-1","4.72-1","5.02-1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libcgi-pm-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.21-1","4.22-1","4.25-1","4.26-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libcgi-pm-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.36-1","4.37-1","4.38-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libcgi-pm-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.44-1","4.45-1","4.46-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libcgi-pm-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.51-1","4.53-1","4.54-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libcgi-pm-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.57-1","4.60-1","4.61-1","4.62-1","4.63-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libcgi-pm-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.71-1build1","4.72-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libcgi-pm-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.68-1","4.71-1","4.71-1build1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"perl-CGI","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.20.0-1.1"}]}],"bundled":20}],"references":[{"url":"https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm","tags":["technical-description","article","report"]},{"url":"https://metacpan.org/release/LEEJO/CGI-5.00/changes","tags":["release-notes","advisory","report"]},{"url":"https://github.com/leejo/CGI.pm/commit/bc4022f553301014e522133ba1e1f4e49e3bef08.patch","tags":["patch","fix","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120640","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-2xpc-hf7c-cgvh"},{"url":"https://cpan.org/modules","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120640.json","tags":["advisory"]},{"url":"https://github.com/leejo/CGI.pm","tags":["package"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-120640","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-120640","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-120640","tags":["report"]},{"url":"https://lists.security.metacpan.org/cve-announce/msg/44874900/","tags":["report"]},{"url":"https://github.com/leejo/CGI.pm/commit/bc4022f553301014e522133ba1e1f4e49e3bef08","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120631","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120632","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120633","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120634","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120635","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120636","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120637","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120638","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120639","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120640","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120641","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120642","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120643","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120644","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120645","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120646","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120647","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120648","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120650","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-120651","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2026-120640","title":"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","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.\n\nCGI 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.\n\nA 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.","status":"published","published":"2026-11-03T23:40:33.77Z","modified":"2026-11-09T19:39:30.743Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium","assessor":"adp"}],"cwes":["CWE-352"],"updated_at":"2026-11-09T20:34:41.792859Z"}],"euvd":[{"id":"EUVD-2026-116607","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.\n\nCGI 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.\n\nA 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.","status":"published","published":"2026-11-03T23:40:33Z","modified":"2026-11-09T19:39:30Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-09T21:18:10.039091Z"}],"ghsa":[{"id":"GHSA-2xpc-hf7c-cgvh","title":"CGI versions before 5.00 for Perl allow the POSTDATA, PUTDATA, PATCHDATA and XForms:Model...","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.\n\nCGI 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.\n\nA 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.","status":"published","published":"2026-11-04T00:32:21Z","modified":"2026-11-09T21:32:43Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-352"],"updated_at":"2026-11-09T21:50:05.607095Z"}],"nvd":[{"id":"CVE-2026-120640","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.\n\nCGI 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.\n\nA 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.","status":"published","published":"2026-11-04T00:17:25.39Z","modified":"2026-11-09T20:18:05.343Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-352"],"updated_at":"2026-11-09T22:15:54.230687Z"}],"osv":[{"id":"CVE-2026-120640","title":"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","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.\n\nCGI 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.\n\nA 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.","status":"published","published":"2026-11-03T23:40:33.77Z","modified":"2026-11-11T10:30:49.986202317Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-352"],"updated_at":"2026-11-10T10:57:25.458985Z"},{"id":"DEBIAN-CVE-2026-120640","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.","status":"published","published":"2026-11-04T00:17:25.39Z","modified":"2026-11-10T10:00:14.065002989Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-10T10:26:30.347596Z"},{"id":"AZL-112807","title":"CVE-2026-120640 affecting package perl-CGI 4.60-1","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.\n\nCGI 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.\n\nA 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.","status":"published","published":"2026-11-04T00:17:25Z","modified":"2026-11-07T14:18:05.481348113Z","updated_at":"2026-11-07T14:48:11.583685Z"},{"id":"openSUSE-SU-2026:12465-1","title":"perl-CGI-5.20.0-1.1 on GA media","description":"These are all security issues fixed in the perl-CGI-5.20.0-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-11-06T00:00:00Z","modified":"2026-11-07T17:23:15.83251468Z","updated_at":"2026-11-07T17:50:39.727056Z"},{"id":"UBUNTU-CVE-2026-120640","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.","status":"published","published":"2026-11-04T00:17:00Z","modified":"2026-11-05T11:45:26.642703155Z","updated_at":"2026-11-05T13:30:49.23793Z"}]}}
