CVE-2021-33621: The cgi gem before 0.1.0.2, 0.2.x before 0.2.2, and 0.3.x before 0.3.5 for Ruby allows HTTP response splitting
57
This month
HIGH 8.8UPGRADEMITIGATEUPGRADE
CVE-2021-33621 is a high-severity flaw (CVSS 8.8) affecting cgi, fedora, ruby. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
The cgi gem before 0.1.0.2, 0.2.x before 0.2.2, and 0.3.x before 0.3.5 for Ruby allows HTTP response splitting. This is relevant to applications that use untrusted user input either to generate an HTTP response or to create a CGI::Cookie object.
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official sourceNVD · CVE Program · Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-33621?
cgi: upgrade to 0.1.0.2, 0.2.2, 0.3.5; fedora: mitigate or apply the listed mitigation; ruby: upgrade to 2.7.7, 3.0.5, 3.1.3. Exact commands for each OS are on this page.
Is CVE-2021-33621 being exploited?
CVE-2021-33621 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-33621 affect?
CVE-2021-33621 affects cgi, fedora, ruby. Severity is high (CVSS 8.8). The cgi gem before 0.1.0.2, 0.2.x before 0.2.2, and 0.3.x before 0.3.5 for Ruby allows HTTP response splitting. This is relevant to applications that use untrusted user input either to generate an HTTP response or to create a CGI::Cookie ob
How urgent is CVE-2021-33621?
Priority 57/100. High severity; Public exploit reference
CVE-2025-27220MEDIUM 4.0UPGRADE In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in t
CVE-2025-27219MEDIUM 5.8UPGRADE In the CGI gem before 0.4.2 for Ruby, the CGI::Cookie.parse method in the CGI library contains a potential Den
CVE-2021-41819HIGH 7.5DOWNGRADEUPGRADE CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names
CVE-2021-41816CRITICAL 9.8UPGRADEMITIGATE CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflo