{"id":"CVE-2021-41819","aliases":["CVE-2021-41819","GHSA-4vf4-qmvg-mh7h","BIT-RUBY-2021-41819","BIT-RUBY-MIN-2021-41819"],"related":[],"kind":"vulnerability","state":"published","title":"Cookie Prefix Spoofing in CGI::Cookie.parse","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names. This also affects the CGI gem prior to versions 0.3.1, 0.2.1, 0.1.1, and 0.1.0.1 for Ruby.","format":"markdown","source":"ghsa"},{"lang":"es","text":"CGI::Cookie.parse en Ruby versiones hasta 2.6.8, maneja inapropiadamente los prefijos de seguridad en los nombres de las cookies. Esto también afecta a CGI gem versiones hasta 0.3.0 para Ruby.","source":"nvd"}],"published":"2022-01-01T00:00:00.000Z","modified":"2026-09-08T08:48:19.326Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-565"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.3.0","status":"affected","fixed":"0.3.1"}],"ecosystem":"RubyGems","package":"cgi","purl":"pkg:gem/cgi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.2.0","status":"affected","fixed":"0.2.1"}],"ecosystem":"RubyGems","package":"cgi","purl":"pkg:gem/cgi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.0.1"}],"ecosystem":"RubyGems","package":"cgi","purl":"pkg:gem/cgi","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.1.0"},{"status":"affected","version":"0.2.0"},{"status":"affected","version":"0.3.0"}],"vendor":"ruby-lang","product":"cgi","cpe":"cpe:2.3:a:ruby-lang:cgi:0.1.0:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[{"status":"affected","lastAffected":"2.6.8"},{"status":"affected","introduced":"2.7.0","fixed":"2.7.5"},{"status":"affected","introduced":"3.0.0","fixed":"3.0.3"}],"vendor":"ruby-lang","product":"ruby","cpe":"cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"redhat","product":"software_collections","cpe":"cpe:2.3:a:redhat:software_collections:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"}],"vendor":"redhat","product":"enterprise_linux","cpe":"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"},{"status":"affected","version":"12.0"},{"status":"affected","version":"15.0"}],"vendor":"suse","product":"linux_enterprise","cpe":"cpe:2.3:o:suse:linux_enterprise:11.0:sp1:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"opensuse","product":"factory","cpe":"cpe:2.3:a:opensuse:factory:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"15.2"}],"vendor":"opensuse","product":"leap","cpe":"cpe:2.3:o:opensuse:leap:15.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"},{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.6.9"},{"type":"semver","introduced":"2.7.0","status":"affected","fixed":"2.7.5"},{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.3"}],"ecosystem":"Bitnami","package":"ruby","purl":"pkg:bitnami/ruby","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.6.9"},{"type":"semver","introduced":"2.7.0","status":"affected","fixed":"2.7.5"},{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.3"}],"ecosystem":"Bitnami","package":"ruby-min","purl":"pkg:bitnami/ruby-min","source":"bitnami"}],"references":[{"url":"https://hackerone.com/reports/910552","tags":["advisory","permissions-required","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819/","tags":["advisory","exploit","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20220121-0003/","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202401-27","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41819","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/ruby/cgi","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2021-41819.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20220121-0003","tags":["web"],"sources":["ghsa"]},{"url":"https://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-05-22T14:43:38.811Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-41819","url":"https://www.cve.org/CVERecord?id=CVE-2021-41819","licence":"CVE Terms of Use","modified":"2025-05-22T15:00:52.998Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4vf4-qmvg-mh7h","url":"https://github.com/advisories/GHSA-4vf4-qmvg-mh7h","licence":"CC-BY-4.0","modified":"2025-01-27T08:58:40.724Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-41819","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41819","licence":"Public domain","modified":"2026-06-17T04:08:57.577Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-RUBY-2021-41819","url":"https://osv.dev/vulnerability/BIT-RUBY-2021-41819","licence":"Apache-2.0","modified":"2026-09-08T08:48:19.326Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-RUBY-MIN-2021-41819","url":"https://osv.dev/vulnerability/BIT-RUBY-MIN-2021-41819","licence":"Apache-2.0","modified":"2026-09-08T08:48:19.187Z"}],"updatedAt":"2026-11-25T22:58:06.324Z","epss":{"score":0.03198,"percentile":0.88458,"date":"2026-12-01T12:00:22.000Z"}}