CVE-2021-41819
No exploitation reported by the sources we read.
- Published2022-01-01
- Fixed in0.3.1 · 0.2.1 · 0.1.0.1
- WeaknessCWE-565
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2022-01-0106:15CVE publishedNVD
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 0.3 | ≥ 0.3.0, < 0.3.1 | 0.3.1 | OSV |
| 0.2 | ≥ 0.2.0, < 0.2.1 | 0.2.1 | OSV |
| 0.1 | < 0.1.0.1 | 0.1.0.1 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.0 | ≥ 3.0.0, < 3.0.3 | 3.0.3 | NVD · OSV |
| 2.7 | ≥ 2.7.0, < 2.7.5 | 2.7.5 | NVD · OSV |
| 2.6 | < 2.6.9 | 2.6.9 | OSV |
| 2.6 | ≤ 2.6.8 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 9.0 | = 9.0 | no fix published | NVD |
| 10.0 | = 10.0 | no fix published | NVD |
| 11.0 | = 11.0 | no fix published | NVD |
7 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- rh-ruby26-rubyRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:2.6.9-120.el7and 4 other packages
- rh-ruby26-rubygem-bigdecimalRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.4.1-120.el7
- rh-ruby26-rubygem-bundlerRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.17.2-120.el7
- rh-ruby26-rubygem-did_you_meanRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.3.0-120.el7
- rh-ruby26-rubygem-io-consoleRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:0.4.7-120.el7
- rh-ruby26-rubygem-irbRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.0.0-120.el7
- rh-ruby26-rubygem-jsonRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:2.1.0-120.el7
- rh-ruby26-rubygem-minitestRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:5.11.3-120.el7
402 more package ranges on OSV.dev
Vendor advisories
ruby: Cookie prefix spoofing in CGI::Cookie.parse
ruby as a component of Red Hat Enterprise Linux 6 · ruby-devel as a component of Red Hat Enterprise Linux 6 · ruby-docs as a component of Red Hat Enterprise Linux 6 · +23 more
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Red Hat Security Advisory: rh-ruby27-ruby security, bug fix, and enhancement update
Red Hat Security Advisory: rh-ruby30-ruby security, bug fix, and enhancement update
8 more advisories
Fix
- Update cgi to 0.3.1 · 0.2.1 · 0.1.0.1
- Vendor fix Red Hat Product Security RHSA-2026:8838 · 13 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://images.redhat.com/
- Vendor fix Red Hat Product Security RHSA-2022:6856 · 68 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
Advisories and patches
- www.ruby-lang.orgVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-10
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2025-05-22
- CISA-ADPCVSS 3.17.52025-05-22
- NVDCVSS 3.17.5read 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- CISA-ADPweakness (CWE)CWE-5652025-05-22
- NVDweakness (CWE)CWE-565read 2026-10-23
- FIRST EPSSEPSS score3.2 %2026-11-09
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2022-01-13
Identifiers
- AZL-7126same flawAzure Linux · MIT
- BIT-ruby-2021-41819same flawBitnami · Apache-2.0
- BIT-ruby-min-2021-41819same flawBitnami · Apache-2.0
- EUVD-2022-0449same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-4vf4-qmvg-mh7hsame flawGitHub Advisory Database · CC-BY-4.0
- JLSEC-2026-1288same flawJulia Security Advisories · CC-BY-4.0
- ALSA-2022:0543advisory covering several CVEsAlmaLinux · MIT
- ALSA-2022:5779advisory covering several CVEsAlmaLinux · MIT
- ALSA-2022:6447advisory covering several CVEsAlmaLinux · MIT
- ALSA-2022:6450advisory covering several CVEsAlmaLinux · MIT
- DLA-2853-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5066-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5067-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2021-0579advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2022-1497advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:11657-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11658-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11786-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:12712-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:13623-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:14621-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15819-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2022:0543advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0544advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0581advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0582advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0708advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:5779advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:6447advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:6450advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:6855advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:6856advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:7305advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:7307advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2026:8838advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:0543advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2022:5779advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2022:6447advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2022:6450advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2022:3292-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5235-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 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
- NVD status
- Modified
- GitHub Advisory
- GHSA-4vf4-qmvg-mh7h
Frequently asked questions
What is CVE-2021-41819?
Is CVE-2021-41819 actively exploited?
What is the CVSS score for CVE-2021-41819?
Running cgi? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-4vf4-qmvg-mh7h
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0