Live threats

All CVEs / Ruby-lang

CVE-2021-33621Ruby-lang Cgi

High 8.8

Priority
53
CVSS 3.1
8.8
EPSS
—
Auth required
Yes
Published
Nov 18, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-74
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Cgi.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems cgi ≥ 0.3.0 < 0.3.5 0.3.5 gem "cgi", ">= 0.3.5"
RubyGems cgi ≥ 0.2.0 < 0.2.2 0.2.2 gem "cgi", ">= 0.2.2"
RubyGems cgi < 0.1.0.2 0.1.0.2 gem "cgi", ">= 0.1.0.2"

Per OSV / GitHub Advisories (GHSA-vc47-6rqg-c7f5). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ruby-langcgi< 0.1.0.2
ruby-langcgi≥ 0.2.0 < 0.2.2
ruby-langcgi≥ 0.3.0 < 0.3.5
fedoraprojectfedora35
fedoraprojectfedora36
fedoraprojectfedora37
ruby-langruby≥ 2.7.0 < 2.7.7
ruby-langruby≥ 3.0.0 < 3.0.5
ruby-langruby≥ 3.1.0 < 3.1.3

Official sources

References

Links published by the sources. Open them with care.