CVE-2021-41819
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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| cgi (RubyGems) | from 0.3.0 before 0.3.1, from 0.2.0 before 0.2.1, before 0.1.0.1 | GitHub Advisory Database |
| ruby-lang cgi | 0.1.0, 0.2.0, 0.3.0 | NVD |
| ruby-lang ruby | up to 2.6.8, from 2.7.0 before 2.7.5, from 3.0.0 before 3.0.3 | NVD |
| redhat software_collections | Not specified | NVD |
| redhat enterprise_linux | 8.0 | NVD |
| debian debian_linux | 9.0, 10.0, 11.0 | NVD |
| suse linux_enterprise | 11.0, 12.0, 15.0 | NVD |
| opensuse factory | Not specified | NVD |
| opensuse leap | 15.2 | NVD |
| fedoraproject fedora | 34, 35 | NVD |
| ruby (Bitnami) | before 2.6.9, from 2.7.0 before 2.7.5, from 3.0.0 before 3.0.3 | Bitnami Vulnerability Database |
| ruby-min (Bitnami) | before 2.6.9, from 2.7.0 before 2.7.5, from 3.0.0 before 3.0.3 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41819 changed 2025-05-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4vf4-qmvg-mh7h changed 2025-01-27 | CC-BY-4.0 |
| NVD | CVE-2021-41819 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-RUBY-2021-41819 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-RUBY-MIN-2021-41819 changed 2026-09-08 | Apache-2.0 |