cve.bz

CVE-2021-33621 Injection

8.8 highExploit referenceEPSS 3.1%Fix available

High (8.8). EPSS 3.1% estimated probability of exploitation activity in the next 30 days. Fixed in cgi 0.1.0.2, 0.2.2, 0.3.5.

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

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
3.1% (up from 2.5% a week ago; 2.4% 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.
CWE
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
OWASP Top 10
A05:2025 Injection
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-33621 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-33621?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-33621?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-33621 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:cgibefore 0.1.0.2
ruby-lang:cgifrom 0.2.0 before 0.2.2
ruby-lang:cgifrom 0.3.0 before 0.3.5
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37
ruby-lang:rubyfrom 2.7.0 before 2.7.7
ruby-lang:rubyfrom 3.0.0 before 3.0.5
ruby-lang:rubyfrom 3.1.0 before 3.1.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vc47-6rqg-c7f5RubyGemscgi>=0.3.0 <0.3.50.3.5
GHSA-vc47-6rqg-c7f5RubyGemscgi>=0.2.0 <0.2.20.2.2
GHSA-vc47-6rqg-c7f5RubyGemscgi<0.1.0.20.1.0.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10ruby2.52.5.5-3+deb10u6DLA-3450-1
Debian11ruby2.72.7.4-1+deb11u2DLA-3858-1
Debian12ruby3.13.1.2-4DEBIAN-CVE-2021-33621
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morejrubyno fix listedUBUNTU-CVE-2021-33621
Ubuntu18.04:LTSruby2.52.5.1-1ubuntu1.13UBUNTU-CVE-2021-33621 USN-5806-2
Ubuntu20.04:LTSruby2.72.7.0-5ubuntu1.8UBUNTU-CVE-2021-33621 USN-5806-3
Ubuntu22.04:LTSruby3.03.0.2-7ubuntu2.3UBUNTU-CVE-2021-33621 USN-5806-2
UbuntuPro:16.04:LTSruby2.32.3.1-2~ubuntu16.04.16+esm4UBUNTU-CVE-2021-33621 USN-5806-1
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-irb and 5 more0:2.5.9-111.module+el8.9.0+19193+435404aeRHSA-2023:7025
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.1.4-142.module+el8.9.0+21471+7d1e4a35RHSA-2024:1431
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 5 more0:2.7.8-139.module+el8.8.0+18745+f1bef313RHSA-2023:3821
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 5 more0:3.0.7-143.module+el8.10.0+21858+d19f3934RHSA-2024:3500
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.3.0-4.module+el8.9.0+19193+435404aeRHSA-2023:7025
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21858+d19f3934RHSA-2024:3500
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.3.0+7192+4e3a532aRHSA-2023:3821
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.9.0+21471+7d1e4a35RHSA-2024:1431
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:1.3.4-111.module+el8.9.0+19193+435404aeRHSA-2023:7025
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:2.0.0-139.module+el8.8.0+18745+f1bef313RHSA-2023:3821
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.0.0-143.module+el8.10.0+21858+d19f3934RHSA-2024:3500
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.1-142.module+el8.9.0+21471+7d1e4a35RHSA-2024:1431
143 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 12 moreruby2.52.5.9-150000.4.29.1SUSE-SU-2023:4176-1
openSUSELeap 15.4, Leap 15.5ruby2.52.5.9-150000.4.29.1SUSE-SU-2023:4176-1
openSUSETumbleweedruby3.13.1.3-1.1openSUSE-SU-2024:12539-1
AlmaLinux8ruby, ruby-doc, ruby-irb and 2 more2.5.9-111.module_el8.9.0+3635+c6f99506ALSA-2023:7025
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.1.4-142.module_el8.9.0+3746+91b8233aALSA-2024:1431
AlmaLinux8ruby, ruby-doc, ruby-libs and 2 more2.7.8-139.module_el8.8.0+3578+2b4b06daALSA-2023:3821
AlmaLinux8ruby, ruby-doc, ruby-libs and 2 more3.0.7-143.module_el8.10.0+3852+ce828b19ALSA-2024:3500
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.3.0-4.module_el8.5.0+2625+ec418553ALSA-2023:7025
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3852+ce828b19ALSA-2024:3500
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.3.0+6147+d0dfc1e4ALSA-2023:3821
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.7.0+3304+9392e77fALSA-2024:1431
AlmaLinux8rubygem-bigdecimal1.3.4-111.module_el8.9.0+3635+c6f99506ALSA-2023:7025
AlmaLinux8rubygem-bigdecimal2.0.0-139.module_el8.8.0+3578+2b4b06daALSA-2023:3821
AlmaLinux8rubygem-bigdecimal3.0.0-143.module_el8.10.0+3852+ce828b19ALSA-2024:3500
AlmaLinux8rubygem-bigdecimal3.1.1-142.module_el8.9.0+3746+91b8233aALSA-2024:1431
122 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.

Red Hat's statement

This vulnerability is marked as moderate because the flaw was more difficult to exploit but could still lead to some compromise of the confidentiality, integrity, or availability of resources under certain circumstances but are less easily exploited based on a technical evaluation of the flaw, or affect unlikely configurations.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8ruby:2.7-8080020230427102918.63b34585Fixed 2023-06-27RHSA-2023:3821
Red Hat Enterprise Linux 8ruby:2.5-8090020230627084142.b46abd14Fixed 2023-11-14RHSA-2023:7025
Red Hat Enterprise Linux 8ruby:3.1-8090020240311122605.a75119d5Fixed 2024-03-19RHSA-2024:1431
Red Hat Enterprise Linux 8ruby:3.0-8100020240522072634.489197e6Fixed 2024-05-30RHSA-2024:3500
Red Hat Enterprise Linux 9ruby:3.1-9030020240320163942.9Fixed 2024-04-01RHSA-2024:1576
Red Hat Enterprise Linux 9ruby-0:3.0.7-162.el9_4Fixed 2024-06-11RHSA-2024:3838
Red Hat Enterprise Linux 9.2 Extended Update Supportruby-0:3.0.4-161.el9_2.1Fixed 2024-07-15RHSA-2024:4542
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-ruby27-ruby-0:2.7.8-132.el7Fixed 2023-05-24RHSA-2023:3291
Red Hat Enterprise Linux 6rubyOut of support scope
Red Hat Enterprise Linux 7rubyOut of support scope
Red Hat Software Collectionsrh-ruby30-rubyWill not fix

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-33621.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON