CVE-2021-41819 in Debian Linux and 8 more products
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.
Affects 9 products from 6 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 9.0 10.0 11.0 |
| Fedoraproject | Fedora | 34 35 |
| Opensuse | Leap | 15.2 |
| Opensuse | Factory | No version listed by the source |
| Redhat | Enterprise Linux | 8.0 |
| Redhat | Software Collections | No version listed by the source |
| Ruby-Lang | Cgi | 0.1.0 0.2.0 0.3.0 |
| Ruby-Lang | Ruby | ≤ 2.6.8 ≥ 2.7.0, < 2.7.5 ≥ 3.0.0, < 3.0.3 |
| Suse | Linux Enterprise | 11.0 12.0 15.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-41819 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-298827-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Published | 2022-01-01 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-565: CWE-565
Related attack patterns (CAPEC)
CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies via CWE-565
CAPEC-226 Session Credential Falsification through Manipulation via CWE-565
CAPEC-39 Manipulating Opaque Client-based Data Tokens via CWE-565
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2021-41819 affects the CGI::Cookie.parse method in Ruby versions through 2.6.8 and the CGI gem through 0.3.0, due to improper handling of security prefixes in cookie names, which could lead to security vulnerabilities.
An attacker could exploit this vulnerability by crafting malicious cookie names that bypass intended security measures, potentially leading to unauthorized access or other security issues.
Questions
What is CVE-2021-41819?
CVE-2021-41819 affects the CGI::Cookie.parse method in Ruby versions through 2.6.8 and the CGI gem through 0.3.0, due to improper handling of security prefixes in cookie names, which could lead to security vulnerabilities.
What is the CVSS score for CVE-2021-41819?
CVE-2021-41819 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 3.2%.
Is CVE-2021-41819 actively exploited?
No confirmed active exploitation of CVE-2021-41819 as of 2026-09-25.
How do I remediate CVE-2021-41819?
Priority: MEDIUM. Advisory: https://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819/ PSIRT: [email protected]
What systems are affected by CVE-2021-41819?
CVE-2021-41819 affects Debian Debian Linux; Fedoraproject Fedora; Opensuse Leap, Factory; Redhat Enterprise Linux, Software Collections; Ruby-Lang Cgi, Ruby; Suse Linux Enterprise.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.