CVE-2021-41819
JSON

7.5high

Cookie Prefix Spoofing in CGI::Cookie.parse

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
3.20% (higher than 88% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-4vf4-qmvg-mh7hBIT-RUBY-2021-41819BIT-RUBY-MIN-2021-41819

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
cgi (RubyGems)from 0.3.0 before 0.3.1, from 0.2.0 before 0.2.1, before 0.1.0.1GitHub Advisory Database
ruby-lang cgi0.1.0, 0.2.0, 0.3.0NVD
ruby-lang rubyup to 2.6.8, from 2.7.0 before 2.7.5, from 3.0.0 before 3.0.3NVD
redhat software_collectionsNot specifiedNVD
redhat enterprise_linux8.0NVD
debian debian_linux9.0, 10.0, 11.0NVD
suse linux_enterprise11.0, 12.0, 15.0NVD
opensuse factoryNot specifiedNVD
opensuse leap15.2NVD
fedoraproject fedora34, 35NVD
ruby (Bitnami)before 2.6.9, from 2.7.0 before 2.7.5, from 3.0.0 before 3.0.3Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:P/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-565

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

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.

References

https://hackerone.com/reports/910552advisory, permissions-required, third-party-advisory, web
https://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819/advisory, exploit, vendor-advisory
https://security.netapp.com/advisory/ntap-20220121-0003/advisory, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF/vendor-advisory, web
https://security.gentoo.org/glsa/202401-27vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-41819advisory, web
https://github.com/ruby/cgipackage
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2021-41819.ymlweb
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWNweb
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZFweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWNweb

Sources

SourceRecordLicence
CVE ListCVE-2021-41819 changed 2025-05-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-4vf4-qmvg-mh7h changed 2025-01-27CC-BY-4.0
NVDCVE-2021-41819 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-RUBY-2021-41819 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-RUBY-MIN-2021-41819 changed 2026-09-08Apache-2.0