{"id":"CVE-2026-120644","state":"PUBLISHED","title":"CGI::Cookie versions before 5.00 for Perl allow cookie attribute injection via unvalidated path, domain and expires values","description":"CGI::Cookie versions before 5.00 for Perl allow cookie attribute injection via unvalidated path, domain and expires values.\n\nThe path, domain and expires values are written into the Set-Cookie header without checking for semicolons or control characters.\n\nAn application that sets them from request data can be made to add other cookie attributes, such as Domain or SameSite.","publishedAt":"2026-11-03T23:40:51.418Z","updatedAt":"2026-11-09T19:33:06.251Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","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::Cookie"],"programFiles":["lib/CGI/Cookie.pm"],"programRoutines":[{"name":"CGI::Cookie::as_string"},{"name":"CGI::Cookie::path"},{"name":"CGI::Cookie::domain"},{"name":"CGI::Cookie::expires"}],"repo":"https://github.com/leejo/CGI.pm"}],"references":["https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI/Cookie.pm","https://metacpan.org/release/LEEJO/CGI-5.00/changes","https://github.com/leejo/CGI.pm/commit/0b3527faaa9de55f79ca7d59dd3bcfb2c5540e00.patch"],"weaknesses":["CWE-116"],"ingestedAt":"2026-11-09T19:40:06.041Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/120xxx/CVE-2026-120644.json","commit":"fbe5a63c70a10d1c22571e07f888688b3cacbc78","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-120644","state":"PUBLISHED","datePublished":"2026-11-03T23:40:51.418Z","dateUpdated":"2026-11-09T19:33:06.251Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-11-02T17:42:50.237Z"},"containers":{"cna":{"title":"CGI::Cookie versions before 5.00 for Perl allow cookie attribute injection via unvalidated path, domain and expires values","descriptions":[{"lang":"en","value":"CGI::Cookie versions before 5.00 for Perl allow cookie attribute injection via unvalidated path, domain and expires values.\n\nThe path, domain and expires values are written into the Set-Cookie header without checking for semicolons or control characters.\n\nAn application that sets them from request data can be made to add other cookie attributes, such as Domain or SameSite."}],"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::Cookie"],"programFiles":["lib/CGI/Cookie.pm"],"programRoutines":[{"name":"CGI::Cookie::as_string"},{"name":"CGI::Cookie::path"},{"name":"CGI::Cookie::domain"},{"name":"CGI::Cookie::expires"}],"repo":"https://github.com/leejo/CGI.pm"}],"references":[{"url":"https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI/Cookie.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/0b3527faaa9de55f79ca7d59dd3bcfb2c5540e00.patch","tags":["patch"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-116","description":"CWE-116 Improper Encoding or Escaping of Output","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-11-03T23:40:51.418Z"},"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":9.1,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-11-09T19:32:41.590437Z","id":"CVE-2026-120644","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-09T19:33:06.251Z"}}]}}}