CVE-2021-33621Ruby-lang Cgi
High 8.8
Follow: this CVE · Ruby-lang · Ruby-lang Cgi We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Cgi.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | cgi | < 0.1.0.2 |
| ruby-lang | cgi | ≥ 0.2.0 < 0.2.2 |
| ruby-lang | cgi | ≥ 0.3.0 < 0.3.5 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
| fedoraproject | fedora | 37 |
| ruby-lang | ruby | ≥ 2.7.0 < 2.7.7 |
| ruby-lang | ruby | ≥ 3.0.0 < 3.0.5 |
| ruby-lang | ruby | ≥ 3.1.0 < 3.1.3 |
Official sources
References
Links published by the sources. Open them with care.
- lists.debian.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.gentoo.org
- security.netapp.com Third Party Advisory
- www.ruby-lang.org Exploit Third Party Advisory
- lists.debian.org