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.
CVE-2021-41819
This high-severity CVE scores 7.5 under NVD CVSS v3. EPSS exploit probability: 0.8%, top 26% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.5
- EG Score
- 7.5(medium)
- EPSS
- 85.5%
- KEV
- Not listed
Published
January 1, 2022
Last Modified
May 22, 2025
References (12)
- cve@mitrehttps://hackerone.com/reports/910552
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF/
- cve@mitrehttps://security.gentoo.org/glsa/202401-27
- cve@mitrehttps://security.netapp.com/advisory/ntap-20220121-0003/
- cve@mitrehttps://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819/
- af854a3a-2127-422b-91ae-364da2661108https://hackerone.com/reports/910552
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN/
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF/
- af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202401-27
- af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20220121-0003/
- af854a3a-2127-422b-91ae-364da2661108https://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819/
Vendor Advisories for CVE-2021-41819(6)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:8838Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
- RHSA-2026:7307Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
- RHSA-2026:7305Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
- RHSA-2022:0708Red Hat Product SecurityHigh
Red Hat Security Advisory: rh-ruby26-ruby security, bug fix, and enhancement update
- RHSA-2022:0582Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby:2.6 security update
- RHSA-2022:0581Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby:2.6 security update
Patch Availability(14)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | ruby2.7-doc (2.7.0-5ubuntu1.6) @ focal | 2026-05-26 | ubuntu |
| redhat | ruby4-0-main-4.0.0-33.3.hum1 | 2026-04-17 | redhat |
| redhat | ruby3-3-main-3.3.10-23.1.hum1 | 2026-04-09 | redhat |
| redhat | ruby3-4-main-3.4.8-31.1.hum1 | 2026-04-09 | redhat |
| redhat | rh-ruby30-ruby-0:3.0.4-149.el7 | 2022-10-11 | redhat |
| redhat | rh-ruby27-ruby-0:2.7.6-131.el7 | 2022-10-11 | redhat |
| redhat | ruby:3.0-8060020220810162001.ad008a3a | 2022-09-13 | redhat |
| redhat | ruby:2.7-8060020220728151401.ad008a3a | 2022-09-13 | redhat |
| redhat | ruby:2.5-8060020220715152618.ad008a3a | 2022-08-01 | redhat |
| redhat | rh-ruby26-ruby-0:2.6.9-120.el7 | 2022-02-28 | redhat |
| redhat | ruby:2.6-8020020220201131207.4cda2c84 | 2022-02-21 | redhat |
| redhat | ruby:2.6-8010020220201152941.c27ad7f8 | 2022-02-21 | redhat |
| redhat | ruby:2.6-8040020220131135901.522a0ee4 | 2022-02-16 | redhat |
| redhat | ruby:2.6-8050020211215144356.c5368500 | 2022-02-16 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
RubyGems(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| cgi | 0.1.0 | 0.1.0.1 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(9)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2021-418192022-01-13
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.
- Red HatRHSA-2022:0543MODERATE2021-11-24
RHSA-2022:0543 — Moderate
- Red HatRHSA-2022:0544MODERATE2021-11-24
RHSA-2022:0544 — Moderate
- Red HatRHSA-2022:5779MODERATE2021-11-24
RHSA-2022:5779 — Moderate
- Red HatRHSA-2022:6447MODERATE2021-11-24
RHSA-2022:6447 — Moderate
- Red HatRHSA-2022:6450MODERATE2021-11-24
RHSA-2022:6450 — Moderate
- Red HatRHSA-2022:6855MODERATE2021-11-24
RHSA-2022:6855 — Moderate
- Red HatRHSA-2022:6856MODERATE2021-11-24
RHSA-2022:6856 — Moderate
- UbuntuUSN-5235-1MEDIUM
Ruby vulnerabilities
Data Freshness Timeline
(refreshed 11× in last 7d / 43× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:43 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-02 16:57 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 00:18 UTCOSV refresh
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 14:05 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
Show 54 moreShow fewer
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 13:10 UTCOSV refresh
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 05:28 UTCEG score recompute
- 2026-05-26 05:28 UTCVendor advisory
Frequently asked(5)
What is CVE-2021-41819?
When was CVE-2021-41819 disclosed?
Is CVE-2021-41819 actively exploited?
What is the CVSS score of CVE-2021-41819?
How do I remediate CVE-2021-41819?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-41819
Is Your Infrastructure Affected by CVE-2021-41819?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.