Skip to content
Noroxi
NVD / CVE Program· CNA mitre

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.

HighCVSS 8.8 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 36/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 3% (FIRST EPSS); higher than 87.8% of all records.
  • Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: ruby (AlmaLinux:8) 3.1.4-142.module_el8.9.0+3746+91b8233a, 3.0.7-143.module_el8.10.0+3852+ce828b19, 2.7.8-139.module_el8.8.0+3578+2b4b06da; ruby-bundled-gems (AlmaLinux:8) 3.1.4-142.module_el8.9.0+3746+91b8233a; ruby-default-gems (AlmaLinux:8) 2.7.8-139.module_el8.8.0+3578+2b4b06da, 3.0.7-143.module_el8.10.0+3852+ce828b19, 3.1.4-142.module_el8.9.0+3746+91b8233a.

Low priority for now. Upgrade to ruby (AlmaLinux:8) 3.1.4-142.module_el8.9.0+3746+91b8233a, 3.0.7-143.module_el8.10.0+3852+ce828b19, 2.7.8-139.module_el8.8.0+3578+2b4b06da; ruby-bundled-gems (AlmaLinux:8) 3.1.4-142.module_el8.9.0+3746+91b8233a; ruby-default-gems (AlmaLinux:8) 2.7.8-139.module_el8.8.0+3578+2b4b06da, 3.0.7-143.module_el8.10.0+3852+ce828b19, 3.1.4-142.module_el8.9.0+3746+91b8233a or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Nov 18, 2022
Updated
Jun 16, 2026
EPSS
3.0% · 87th percentile

Report tools

JSON

Action score

36

Monitor

Low priority for now.

CVSS
35 / 40 · 8.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 3.0%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2021-33621

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
ruby-langcgi
ruby-langruby
fedoraprojectfedora

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • fedoraproject fedora35
  • fedoraproject fedora36
  • fedoraproject fedora37
  • ruby-lang cgibefore 0.1.0.2
  • ruby-lang cgi0.2.0 and later · before 0.2.2
  • ruby-lang cgi0.3.0 and later · before 0.3.5
  • ruby-lang ruby2.7.0 and later · before 2.7.7
  • ruby-lang ruby3.0.0 and later · before 3.0.5
  • ruby-lang ruby3.1.0 and later · before 3.1.3

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8rubybefore 3.1.4-142.module_el8.9.0+3746+91b8233a3.1.4-142.module_el8.9.0+3746+91b8233a
AlmaLinux:8rubybefore 3.0.7-143.module_el8.10.0+3852+ce828b193.0.7-143.module_el8.10.0+3852+ce828b19
AlmaLinux:8rubybefore 2.7.8-139.module_el8.8.0+3578+2b4b06da2.7.8-139.module_el8.8.0+3578+2b4b06da
AlmaLinux:8rubybefore 2.5.9-111.module_el8.9.0+3635+c6f995062.5.9-111.module_el8.9.0+3635+c6f99506
AlmaLinux:8ruby-bundled-gemsbefore 3.1.4-142.module_el8.9.0+3746+91b8233a3.1.4-142.module_el8.9.0+3746+91b8233a
AlmaLinux:8ruby-default-gemsbefore 2.7.8-139.module_el8.8.0+3578+2b4b06da2.7.8-139.module_el8.8.0+3578+2b4b06da
AlmaLinux:8ruby-default-gemsbefore 3.0.7-143.module_el8.10.0+3852+ce828b193.0.7-143.module_el8.10.0+3852+ce828b19
AlmaLinux:8ruby-default-gemsbefore 3.1.4-142.module_el8.9.0+3746+91b8233a3.1.4-142.module_el8.9.0+3746+91b8233a
AlmaLinux:8ruby-develbefore 3.0.7-143.module_el8.10.0+3852+ce828b193.0.7-143.module_el8.10.0+3852+ce828b19
AlmaLinux:8ruby-develbefore 2.5.9-111.module_el8.9.0+3635+c6f995062.5.9-111.module_el8.9.0+3635+c6f99506
AlmaLinux:8ruby-develbefore 2.7.8-139.module_el8.8.0+3578+2b4b06da2.7.8-139.module_el8.8.0+3578+2b4b06da
AlmaLinux:8ruby-develbefore 3.1.4-142.module_el8.9.0+3746+91b8233a3.1.4-142.module_el8.9.0+3746+91b8233a
AlmaLinux:8ruby-docbefore 2.7.8-139.module_el8.8.0+3578+2b4b06da2.7.8-139.module_el8.8.0+3578+2b4b06da
AlmaLinux:8ruby-docbefore 3.0.7-143.module_el8.10.0+3852+ce828b193.0.7-143.module_el8.10.0+3852+ce828b19
AlmaLinux:8ruby-docbefore 3.1.4-142.module_el8.9.0+3746+91b8233a3.1.4-142.module_el8.9.0+3746+91b8233a
AlmaLinux:8ruby-docbefore 2.5.9-111.module_el8.9.0+3635+c6f995062.5.9-111.module_el8.9.0+3635+c6f99506
AlmaLinux:8ruby-irbbefore 2.5.9-111.module_el8.9.0+3635+c6f995062.5.9-111.module_el8.9.0+3635+c6f99506
AlmaLinux:8ruby-libsbefore 2.5.9-111.module_el8.9.0+3635+c6f995062.5.9-111.module_el8.9.0+3635+c6f99506
AlmaLinux:8ruby-libsbefore 2.7.8-139.module_el8.8.0+3578+2b4b06da2.7.8-139.module_el8.8.0+3578+2b4b06da
AlmaLinux:8ruby-libsbefore 3.1.4-142.module_el8.9.0+3746+91b8233a3.1.4-142.module_el8.9.0+3746+91b8233a
AlmaLinux:8ruby-libsbefore 3.0.7-143.module_el8.10.0+3852+ce828b193.0.7-143.module_el8.10.0+3852+ce828b19
AlmaLinux:8rubygem-abrtbefore 0.4.0-1.module_el8.7.0+3304+9392e77f0.4.0-1.module_el8.7.0+3304+9392e77f
AlmaLinux:8rubygem-abrtbefore 0.4.0-1.module_el8.10.0+3852+ce828b190.4.0-1.module_el8.10.0+3852+ce828b19
AlmaLinux:8rubygem-abrtbefore 0.4.0-1.module_el8.3.0+6147+d0dfc1e40.4.0-1.module_el8.3.0+6147+d0dfc1e4

+96

Other highest-scoring records for the same primary product.

  • CVE-2021-41816CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on…
    40Plan
  • CVE-2021-41819CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names.
    31Monitor
  • CVE-2025-27220In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
    30Monitor

Published before and after this one in the same product

  • Later →CVE-2025-27219Mar 3, 2025 · In the CGI gem before 0.4.2 for Ruby, the CGI::Cookie.parse method in the CGI library contains a potential Denial of Service (DoS)…
    30Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:ruby2.7.8-139.module_el8.8.0+3578+2b4b06da · AlmaLinux:8Package registry (OSV)
almalinux:ruby-default-gems2.7.8-139.module_el8.8.0+3578+2b4b06da · AlmaLinux:8Package registry (OSV)
almalinux:ruby-devel2.7.8-139.module_el8.8.0+3578+2b4b06da · AlmaLinux:8Package registry (OSV)
almalinux:ruby-doc2.7.8-139.module_el8.8.0+3578+2b4b06da · AlmaLinux:8Package registry (OSV)
almalinux:ruby-libs2.7.8-139.module_el8.8.0+3578+2b4b06da · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-abrt0.4.0-1.module_el8.3.0+6147+d0dfc1e4 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-abrt-doc0.4.0-1.module_el8.3.0+6147+d0dfc1e4 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-bigdecimal2.0.0-139.module_el8.8.0+3578+2b4b06da · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-bson4.8.1-1.module_el8.5.0+117+35d1289b · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-bson-doc4.8.1-1.module_el8.3.0+6147+d0dfc1e4 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-bundler2.2.24-139.module_el8.8.0+3578+2b4b06da · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-io-console0.5.6-139.module_el8.8.0+3578+2b4b06da · AlmaLinux:8Package registry (OSV)
alpine:ruby2.7.7-r0 · Alpine:v3.14Package registry (OSV)
debian:ruby2.52.5.5-3+deb10u6 · Debian:10Package registry (OSV)
debian:ruby2.72.7.4-1+deb11u2 · Debian:11Package registry (OSV)
debian:ruby3.13.1.2-4 · Debian:12Package registry (OSV)
opensuse:ruby2.52.5.9-150000.4.29.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:ruby3.13.1.3-1.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:rh-ruby27-ruby0:2.7.8-132.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby27-ruby-debuginfo0:2.7.8-132.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby27-ruby-devel0:2.7.8-132.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby27-ruby-doc0:2.7.8-132.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby27-ruby-libs0:2.7.8-132.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby27-rubygem-bigdecimal0:2.0.0-132.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby27-rubygem-bundler0:2.2.24-132.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby27-rubygem-did_you_mean0:1.4.0-132.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby27-rubygem-io-console0:0.5.6-132.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby27-rubygem-irb0:1.2.6-132.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby27-rubygem-json0:2.3.0-132.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)
red hat:rh-ruby27-rubygem-minitest0:5.13.0-132.el7 · Red Hat:rhel_software_collections:3::el7Package registry (OSV)

+11

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

nvd-primary

References

All records