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: 2.9%, top 14% 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)
- EG Risk
- 35(Track)EG Risk 35/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity75% × 45%Exploitation3% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 3%
- EPSS %ILE
- 86%
- 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(8)
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
- RHSA-2022:0544Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby:2.6 security update
- RHSA-2022:0543Red 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
(17 across 17 ecosystems)
Alpine:v3.12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 2.7.5-r0 | — |
Alpine:v3.13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 2.7.5-r0 | — |
Alpine:v3.14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 2.7.5-r0 | — |
Alpine:v3.15(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 3.0.3-r0 | — |
Alpine:v3.16(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 3.0.3-r0 | — |
Alpine:v3.17(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 3.0.3-r0 | — |
Alpine:v3.18(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 3.0.3-r0 | — |
Alpine:v3.19(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 3.0.3-r0 | — |
Alpine:v3.20(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 3.0.3-r0 | — |
Alpine:v3.21(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 3.0.3-r0 | — |
Alpine:v3.22(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 3.0.3-r0 | — |
Alpine:v3.23(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 3.0.3-r0 | — |
Alpine:v3.24(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby | — | 3.0.3-r0 | — |
Debian:10(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby2.5 | 2.5.5-3, 2.5.5-3+deb10u1, 2.5.5-3+deb10u2, 2.5.5-3+deb10u3 | 2.5.5-3+deb10u4 | — |
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby2.7 | 2.7.4-1 | 2.7.4-1+deb11u1 | — |
Debian:9(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| ruby2.3 | 2.3.3-1 ... 2.3.3-1+deb9u9 (11 versions) | 2.3.3-1+deb9u11 | — |
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
(7)
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: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 8× in last 7d / 29× 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.
Showing the most recent 100 of 134 total refreshes for this CVE.
- 2026-08-25 13:46 UTCEPSS rescore
- 2026-08-24 14:13 UTCEPSS rescore
- 2026-08-23 00:16 UTCEPSS rescore
- 2026-08-21 23:46 UTCEPSS rescore
- 2026-08-20 22:52 UTCEPSS rescore
- 2026-08-20 22:52 UTCEPSS rescore
- 2026-08-19 17:01 UTCEPSS rescore
- 2026-08-19 11:59 UTCOSV refresh
- 2026-08-18 13:45 UTCEPSS rescore
- 2026-08-17 13:44 UTCEPSS rescore
- 2026-08-16 14:53 UTCEPSS rescore
- 2026-08-16 02:11 UTCEPSS rescore
- 2026-08-15 01:27 UTCEPSS rescore
- 2026-08-13 21:57 UTCEPSS rescore
- 2026-08-12 13:48 UTCEPSS rescore
- 2026-08-11 13:38 UTCEPSS rescore
- 2026-08-09 13:44 UTCEPSS rescore
- 2026-08-08 16:33 UTCEPSS rescore
- 2026-08-07 16:24 UTCEPSS rescore
- 2026-08-06 13:44 UTCEPSS rescore
- 2026-08-05 19:14 UTCEPSS rescore
- 2026-08-04 10:34 UTCEPSS rescore
- 2026-08-04 07:27 UTCOSV refresh
- 2026-08-03 10:33 UTCEPSS rescore
- 2026-08-02 02:24 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-08-01 04:13 UTCEPSS rescore
- 2026-07-30 16:25 UTCEPSS rescore
- 2026-07-30 01:28 UTCEPSS rescore
- 2026-07-28 15:33 UTCEPSS rescore
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-25 14:15 UTCEPSS rescore
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-23 14:16 UTCEPSS rescore
- 2026-07-23 02:04 UTCEG score recompute
- 2026-07-22 22:51 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-20 17:05 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-18 10:02 UTCEPSS rescore
- 2026-07-18 10:02 UTCEPSS rescore
- 2026-07-18 04:29 UTCOSV refresh
- 2026-07-16 17:00 UTCEPSS rescore
- 2026-07-16 17:00 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-12 05:44 UTCEPSS rescore
- 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
- 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
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.