{"id":"CVE-2026-120651","state":"PUBLISHED","title":"CGI versions before 5.00 for Perl allow an infinite loop on a short request body when $DISABLE_UPLOADS is set","description":"CGI versions before 5.00 for Perl allow an infinite loop on a short request body when $DISABLE_UPLOADS is set.\n\nWhen $CGI::PUTDATA_UPLOAD or an upload hook is set, read_postdata_putdata takes a request body that is not a form submission. With $CGI::DISABLE_UPLOADS set, it discards the body by reading until Content-Length bytes have arrived. Once a body shorter than its Content-Length runs out, every read returns 0, so the loop never ends.\n\nA client can keep a server process spinning with one such request.","publishedAt":"2026-11-03T23:41:17.179Z","updatedAt":"2026-11-09T18:43:31.972Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["CGI"],"affected":[{"packageName":"CGI","packageURL":"pkg:cpan/CGI","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"5.00","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["CGI"],"programFiles":["lib/CGI.pm"],"programRoutines":[{"name":"CGI::read_postdata_putdata"}],"repo":"https://github.com/leejo/CGI.pm"}],"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/16d9f61acf8b844b7360e8d726338e3ce34dfa9f.patch","https://github.com/leejo/CGI.pm/commit/8a78305065690461ae283fa24e5ebe4ec8a22fbc.patch"],"weaknesses":["CWE-835"],"ingestedAt":"2026-11-09T18:50:06.466Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/120xxx/CVE-2026-120651.json","commit":"25decaddb4a6f325475f2a9b38712cef3315730a","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-120651","state":"PUBLISHED","datePublished":"2026-11-03T23:41:17.179Z","dateUpdated":"2026-11-09T18:43:31.972Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-11-02T17:59:11.920Z"},"containers":{"cna":{"title":"CGI versions before 5.00 for Perl allow an infinite loop on a short request body when $DISABLE_UPLOADS is set","descriptions":[{"lang":"en","value":"CGI versions before 5.00 for Perl allow an infinite loop on a short request body when $DISABLE_UPLOADS is set.\n\nWhen $CGI::PUTDATA_UPLOAD or an upload hook is set, read_postdata_putdata takes a request body that is not a form submission. With $CGI::DISABLE_UPLOADS set, it discards the body by reading until Content-Length bytes have arrived. Once a body shorter than its Content-Length runs out, every read returns 0, so the loop never ends.\n\nA client can keep a server process spinning with one such request."}],"affected":[{"packageName":"CGI","packageURL":"pkg:cpan/CGI","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"5.00","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","modules":["CGI"],"programFiles":["lib/CGI.pm"],"programRoutines":[{"name":"CGI::read_postdata_putdata"}],"repo":"https://github.com/leejo/CGI.pm"}],"references":[{"url":"https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm","tags":["technical-description"]},{"url":"https://metacpan.org/release/LEEJO/CGI-5.00/changes","tags":["release-notes"]},{"url":"https://github.com/leejo/CGI.pm/commit/16d9f61acf8b844b7360e8d726338e3ce34dfa9f.patch","tags":["patch"]},{"url":"https://github.com/leejo/CGI.pm/commit/8a78305065690461ae283fa24e5ebe4ec8a22fbc.patch","tags":["patch"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-835","description":"CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-11-03T23:41:17.179Z"},"solutions":[{"lang":"en","value":"Upgrade to CGI 5.00 or later."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-11-09T18:42:59.108964Z","id":"CVE-2026-120651","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-09T18:43:31.972Z"}}]}}}