CVE-2021-41819 — Cookie Prefix Spoofing in cgi — CVE Details
Cookie Prefix Spoofing in CGI::Cookie.parse
Summary
Advisory Timeline
- First published January 21, 2022 (1725 days ago).
- Last revised January 27, 2025 — 1101 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install cgi -v 0.2.1
gem install cgi -v 0.1.0.1
gem install cgi -v 0.3.1
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: rubygems (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-565
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-41819ADVISORY
- https://hackerone.com/reports/910552WEB
- 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
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZFWEB
- https://security.gentoo.org/glsa/202401-27WEB
- https://security.netapp.com/advisory/ntap-20220121-0003WEB
- https://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819WEB
Frequently Asked Questions
- What is CVE-2021-41819?
- Cookie Prefix Spoofing in CGI::Cookie.parse This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2021-41819?
- CVE-2021-41819 affects cgi. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-41819 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2021-41816CRITICAL
Buffer overrun in CGI.escape_html
- CVE-2026-94462HIGH
Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)
- CVE-2021-33621HIGH
HTTP response splitting in CGI
- CVE-2026-77601HIGH
OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting
- CVE-2025-27219MEDIUM
CGI has Denial of Service (DoS) potential in Cookie.parse
- CVE-2025-27220MEDIUM
CGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElement
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies