CVE-2021-33621
HTTP response splitting in CGI
Reported by mitre · Published November 18, 2022
cgi is fixed in 0.3.5, 0.2.2 and 0.1.0.2 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| cgi | RubyGems | 0.3.5, 0.2.2, 0.1.0.2 |
| rubygems-devel | errata.rockylinux.org | 0:2.7.6.3-111.module+el8.9.0+1536+5f79634e.noarch |
| rubygem-json-debuginfo | errata.rockylinux.org | 0:2.1.0-111.module+el8.9.0+1536+5f79634e.aarch64 |
| rubygem-net-telnet | errata.rockylinux.org | 0:0.1.1-111.module+el8.9.0+1536+5f79634e.noarch |
| rubygem-mysql2 | errata.rockylinux.org | 0:0.4.10-4.module+el8.9.0+1536+5f79634e.x86_64, 0:0.4.10-4.module+el8.9.0+1536+5f79634e.src |
| rubygem-bson-doc | errata.rockylinux.org | 0:4.3.0-2.module+el8.9.0+1536+5f79634e.noarch |
| rubygem-bigdecimal-debuginfo | errata.rockylinux.org | 0:1.3.4-111.module+el8.9.0+1536+5f79634e.x86_64, 0:1.3.4-111.module+el8.9.0+1536+5f79634e.i686 |
| rubygem-bson | errata.rockylinux.org | 0:4.3.0-2.module+el8.9.0+1536+5f79634e.src, 0:4.3.0-2.module+el8.9.0+1536+5f79634e.aarch64 |
| rubygem-pg | errata.rockylinux.org | 0:1.0.0-3.module+el8.9.0+1536+5f79634e.x86_64, 0:1.0.0-3.module+el8.9.0+1536+5f79634e.src |
| rubygem-test-unit | errata.rockylinux.org | 0:3.2.7-111.module+el8.9.0+1536+5f79634e.noarch |
| ruby-debugsource | errata.rockylinux.org | 0:2.5.9-111.module+el8.9.0+1536+5f79634e.x86_64, 0:2.5.9-111.module+el8.9.0+1536+5f79634e.i686 |
| ruby-irb | errata.rockylinux.org | 0:2.5.9-111.module+el8.9.0+1536+5f79634e.noarch |
4 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| amazon:2 | ruby-irb | 0 |
| chainguard | ruby-3.0 | 0 |
| amazon:2 | rubygem-json | 0 |
| amazon:2 | ruby-devel | 0 |
| amazon:2 | rubygem-io-console | 0 |
| amazon:2 | rubygems-devel | 0 |
| amazon:2 | ruby-tcltk | 0 |
| amazon:2 | ruby-libs | 0 |
| amazon:2 | rubygem-rake | 0 |
| amazon:2 | rubygem-rdoc | 0 |
| amazon:2 | rubygems | 0 |
| amazon:2 | ruby | 0 |
| RubyGems | cgi | 0.3.0, 0.2.0, 0 |
| alpine | ruby | 0, 0, 0 |
| amazon:2 | rubygem-psych | 0 |
| wolfi | ruby-3.0 | 0 |
| amazon:2 | ruby-doc | 0 |
| amazon:2 | rubygem-bigdecimal | 0 |
…and 1 more
Timeline
- Nov 18, 2022 CVE Published
- Nov 22, 2022 EPSS Score (30 in total, the first dated here)
- Nov 24, 2022 PoC Published (4 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (13 in total, the first dated here)
- Mar 7, 2026 Security Advisory (15 in total, the first dated here)
- Aug 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-33621
vulnetix vdb fixes CVE-2021-33621
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-33621/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-ef96a58bbe vendor-advisory
- FEDORA-2022-f0f6c6bec2 vendor-advisory
- FEDORA-2022-b9b710f199 vendor-advisory
- [debian-lts-announce] 20230609 [SECURITY] [DLA 3450-1] ruby2.5 security update mailing-list
- GLSA-202401-27 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2021-33621 advisory
- https://github.com/advisories/GHSA-vc47-6rqg-c7f5 advisory
- https://hackerone.com/reports/1204695 url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2021-33621.yml advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DQR7LWED6VAPD5ATYOBZIGJQPCUBRJBX url
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/THVTYHHEOVLQFCFHWURZYO7PVUPBHRZD url
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YACE6ORF2QBXXBK2V2CM36D7TZMEJVAS url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DQR7LWED6VAPD5ATYOBZIGJQPCUBRJBX url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/THVTYHHEOVLQFCFHWURZYO7PVUPBHRZD url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YACE6ORF2QBXXBK2V2CM36D7TZMEJVAS url
- https://security.netapp.com/advisory/ntap-20221228-0004 advisory
- https://www.ruby-lang.org/en/news/2022/11/22/http-response-splitting-in-cgi-cve-2021-33621 url
- https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html url