CVE-2021-33621
HIGH 8.8CVSS 3.1HTTP response splitting in CGI
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
- 18 Nov 2022
- Last modified
- 13 Aug 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-436CWE-74
- Also known as
- BIT-ruby-2021-33621BIT-ruby-min-2021-33621GHSA-vc47-6rqg-c7f5
- Sources
- NVDJSONOSV GHSA-vc47-6rqg-c7f5JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ruby-lang | cgicpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* |
< 0.1.0.2 | 0.1.0.2 |
| NVD | ruby-lang | cgicpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* |
>= 0.2.0, < 0.2.2 | 0.2.2 |
| NVD | ruby-lang | cgicpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* |
>= 0.3.0, < 0.3.5 | 0.3.5 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
= 35 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* |
= 36 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* |
= 37 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* |
>= 2.7.0, < 2.7.7 | 2.7.7 |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.0.5 | 3.0.5 |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* |
>= 3.1.0, < 3.1.3 | 3.1.3 |
| OSV | RubyGems | cgi | >= 0.3.0, < 0.3.5 | 0.3.5 |
| OSV | RubyGems | cgi | >= 0.2.0, < 0.2.2 | 0.2.2 |
| OSV | RubyGems | cgi | < 0.1.0.2 | 0.1.0.2 |
References
- https://lists.debian.org/debian-lts-announce/2023/06/msg00012.html · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DQR7LWED6VAPD5ATYOBZIGJQPCUBRJBX/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/THVTYHHEOVLQFCFHWURZYO7PVUPBHRZD/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YACE6ORF2QBXXBK2V2CM36D7TZMEJVAS/ · WEB
- https://security.gentoo.org/glsa/202401-27 · WEB
- https://security.netapp.com/advisory/ntap-20221228-0004/ · Third Party Advisory, WEB
- https://www.ruby-lang.org/en/news/2022/11/22/http-response-splitting-in-cgi-cve-2021-33621/ · Exploit, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-33621 · ADVISORY
- https://hackerone.com/reports/1204695 · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2021-33621.yml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DQR7LWED6VAPD5ATYOBZIGJQPCUBRJBX · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/THVTYHHEOVLQFCFHWURZYO7PVUPBHRZD · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YACE6ORF2QBXXBK2V2CM36D7TZMEJVAS · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 18 Nov 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Nov 2022)