cve.bz

CVE-2021-41819

7.5 highExploit referenceEPSS 3.2%Fix available

High (7.5). EPSS 3.2% estimated probability of exploitation activity in the next 30 days. Fixed in cgi 0.1.0.1, 0.2.1, 0.3.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
3.2% (unchanged from 3.2% a week ago; 2.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-05-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-565 Reliance on Cookies without Validation and Integrity Checking
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-41819 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-41819?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-41819?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-41819 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ruby-lang:cgi0.1.0
ruby-lang:cgi0.2.0
ruby-lang:cgi0.3.0
ruby-lang:rubythrough 2.6.8
ruby-lang:rubyfrom 2.7.0 before 2.7.5
ruby-lang:rubyfrom 3.0.0 before 3.0.3
redhat:enterprise_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0
suse:linux_enterprise11.0:sp1
suse:linux_enterprise12.0
suse:linux_enterprise15.0
opensuse:leap15.2
fedoraproject:fedora34
fedoraproject:fedora35

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4vf4-qmvg-mh7hRubyGemscgi>=0.3.0 <0.3.10.3.1
GHSA-4vf4-qmvg-mh7hRubyGemscgi>=0.2.0 <0.2.10.2.1
GHSA-4vf4-qmvg-mh7hRubyGemscgi<0.1.0.10.1.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9ruby2.32.3.3-1+deb9u11DLA-2853-1
Debian10ruby2.52.5.5-3+deb10u4DSA-5066-1
Debian11ruby2.72.7.4-1+deb11u1DEBIAN-CVE-2021-41819 DSA-5067-1
Ubuntu18.04:LTSruby2.52.5.1-1ubuntu1.11UBUNTU-CVE-2021-41819 USN-5235-1
Ubuntu20.04:LTSruby2.72.7.0-5ubuntu1.6UBUNTU-CVE-2021-41819 USN-5235-1
Ubuntu22.04:LTSruby3.03.0.2-7ubuntu2UBUNTU-CVE-2021-41819
UbuntuPro:16.04:LTSruby2.32.3.1-2~ubuntu16.04.16+esm2UBUNTU-CVE-2021-41819 USN-5235-1
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-irb and 5 more0:2.5.9-110.module+el8.6.0+15956+aa803fc1RHSA-2022:5779
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 5 more0:2.7.6-138.module+el8.6.0+16148+54b2ba8fRHSA-2022:6447
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 5 more0:3.0.4-141.module+el8.6.0+16311+3e5e17e9RHSA-2022:6450
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 4 more0:2.6.9-108.module+el8.5.0+13719+08a8ba32RHSA-2022:0543
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.1.0+3653+beb38eb0RHSA-2022:0543
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.1.0+3656+f80bfa1dRHSA-2022:5779
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.3.0+7192+4e3a532aRHSA-2022:6447
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.5.0+11580+845038ebRHSA-2022:6450
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.3.4-110.module+el8.6.0+15956+aa803fc1RHSA-2022:5779
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.4.1-108.module+el8.5.0+13719+08a8ba32RHSA-2022:0543
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:2.0.0-138.module+el8.6.0+16148+54b2ba8fRHSA-2022:6447
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.0.0-141.module+el8.6.0+16311+3e5e17e9RHSA-2022:6450
192 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Basesystem 15 SP4ruby2.52.5.9-150000.4.26.1SUSE-SU-2022:3292-1
openSUSELeap 15.3, Leap 15.4ruby2.52.5.9-150000.4.26.1SUSE-SU-2022:3292-1
openSUSETumbleweedruby2.72.7.5-1.1openSUSE-SU-2024:11657-1
openSUSETumbleweedruby3.03.0.3-1.1openSUSE-SU-2024:11658-1
openSUSETumbleweedruby3.13.1.0-1.1openSUSE-SU-2024:11786-1
openSUSETumbleweedruby3.23.2.1-1.1openSUSE-SU-2024:12712-1
openSUSETumbleweedruby3.33.3.0-1.2openSUSE-SU-2024:13623-1
openSUSETumbleweedruby3.43.4.1-1.1openSUSE-SU-2025:14621-1
openSUSETumbleweedruby4.04.0.0~preview2-1.1openSUSE-SU-2025:15819-1
AlmaLinux8ruby, ruby-doc, ruby-irb and 2 more2.5.9-110.module_el8.6.0+3074+4b08f9d4ALSA-2022:5779
AlmaLinux8ruby, ruby-doc, ruby-libs and 1 more2.6.9-108.module_el8.5.0+250+ba22dbf7ALSA-2022:0543
AlmaLinux8ruby, ruby-doc, ruby-libs and 1 more2.6.9-108.module_el8.5.0+2623+08a8ba32ALSA-2022:0543
AlmaLinux8ruby, ruby-doc, ruby-libs and 2 more2.7.6-138.module_el8.6.0+3263+904da987ALSA-2022:6447
AlmaLinux8ruby, ruby-doc, ruby-libs and 2 more3.0.4-141.module_el8.6.0+3263+41cde0c0ALSA-2022:6450
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+259+8cec6917ALSA-2022:0543
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+2623+08a8ba32ALSA-2022:0543
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+2625+ec418553ALSA-2022:5779
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.5.0+2595+0c654ebcALSA-2022:6447 ALSA-2022:6450
AlmaLinux8rubygem-bigdecimal1.3.4-110.module_el8.6.0+3074+4b08f9d4ALSA-2022:5779
AlmaLinux8rubygem-bigdecimal1.4.1-108.module_el8.5.0+250+ba22dbf7ALSA-2022:0543
AlmaLinux8rubygem-bigdecimal1.4.1-108.module_el8.5.0+2623+08a8ba32ALSA-2022:0543
68 more for AlmaLinux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8ruby:2.6-8050020211215144356.c5368500Fixed 2022-02-16RHSA-2022:0543
Red Hat Enterprise Linux 8ruby:2.5-8060020220715152618.ad008a3aFixed 2022-08-01RHSA-2022:5779
Red Hat Enterprise Linux 8ruby:2.7-8060020220728151401.ad008a3aFixed 2022-09-13RHSA-2022:6447
Red Hat Enterprise Linux 8ruby:3.0-8060020220810162001.ad008a3aFixed 2022-09-13RHSA-2022:6450
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsruby:2.6-8010020220201152941.c27ad7f8Fixed 2022-02-21RHSA-2022:0581
Red Hat Enterprise Linux 8.2 Extended Update Supportruby:2.6-8020020220201131207.4cda2c84Fixed 2022-02-21RHSA-2022:0582
Red Hat Enterprise Linux 8.4 Extended Update Supportruby:2.6-8040020220131135901.522a0ee4Fixed 2022-02-16RHSA-2022:0544
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby26-ruby-0:2.6.9-120.el7Fixed 2022-02-28RHSA-2022:0708
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby30-ruby-0:3.0.4-149.el7Fixed 2022-10-11RHSA-2022:6855
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby27-ruby-0:2.7.6-131.el7Fixed 2022-10-11RHSA-2022:6856
Red Hat Hardened Imagesruby3-3-main-3.3.10-23.1.hum1Fixed 2026-04-09RHSA-2026:7305
Red Hat Hardened Imagesruby3-4-main-3.4.8-31.1.hum1Fixed 2026-04-09RHSA-2026:7307
Red Hat Hardened Imagesruby4-0-main-4.0.0-33.3.hum1Fixed 2026-04-17RHSA-2026:8838
Red Hat Enterprise Linux 6rubyOut of support scope
Red Hat Enterprise Linux 7rubyOut of support scope
Red Hat Enterprise Linux 9rubyNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-41819.

Attack patterns (CAPEC)

  • CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies Likelihood: High · Severity: High
  • CAPEC-39 Manipulating Opaque Client-based Data Tokens Likelihood: High · Severity: Medium
  • CAPEC-226 Session Credential Falsification through Manipulation Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON