{"id":"CVE-2021-41819","published":"2022-01-01T00:00:00Z","modified":"2025-05-22T15:00:52Z","title":"CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names","vendor":null,"product":null,"tier":"tail","description":{"text":"CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names. This also affects the CGI gem through 0.3.0 for Ruby.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.03198,"percentile":0.88432,"provenance":"source"},"cwes":[{"id":"CWE-565","name":"Reliance on Cookies without Validation and Integrity Checking"}],"references":[{"url":"https://hackerone.com/reports/910552","tags":[]},{"url":"https://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20220121-0003/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF/","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202401-27","tags":["vendor-advisory"]}],"priority":{"score":22.9,"factors":[{"name":"EPSS percentile","points":17.69},{"name":"CVSS severity","points":5.25}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-22T14:43:38.811242Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"cgi","vulnerableRanges":[">=0.3.0, <0.3.1",">=0.2.0, <0.2.1","<0.1.0.1"],"patched":["0.3.1","0.2.1","0.1.0.1"],"from":["GHSA-4vf4-qmvg-mh7h"],"provenance":"source"}],"summary":{"text":"The flaw is in the CGI::Cookie.parse method of Ruby (through 2.6.8) and the CGI gem (through 0.3.0), which mishandles security prefixes in cookie names. An attacker who can get a network request to a vulnerable application without needing authentication or any user interaction can exploit it, with the result that cookie integrity protections relying on those prefixes are not reliably enforced.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:50Z"},"euvd":{"id":"EUVD-2022-0449","exploited":false,"provenance":"source"}}