# CVE-2021-33621: HTTP response splitting in CGI

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.06%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-11-18T00:00:00.000Z
- Modified: 2026-09-08T08:48:19.395Z
- Also known as: GHSA-vc47-6rqg-c7f5, BIT-RUBY-2021-33621, BIT-RUBY-MIN-2021-33621
- Weaknesses: CWE-74, CWE-436
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- cgi (RubyGems): from 0.3.0 before 0.3.5; from 0.2.0 before 0.2.2; before 0.1.0.2
- ruby-lang cgi: before 0.1.0.2; from 0.2.0 before 0.2.2; from 0.3.0 before 0.3.5
- fedoraproject fedora: 35; 36; 37
- ruby-lang ruby: from 2.7.0 before 2.7.7; from 3.0.0 before 3.0.5; from 3.1.0 before 3.1.3
- ruby (Bitnami): from 2.7.0 before 2.7.7; from 3.0.0 before 3.0.5; from 3.1.0 before 3.1.3
- ruby-min (Bitnami): from 2.7.0 before 2.7.7; from 3.0.0 before 3.0.5; from 3.1.0 before 3.1.3

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.ruby-lang.org/en/news/2022/11/22/http-response-splitting-in-cgi-cve-2021-33621/> (exploit, advisory, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DQR7LWED6VAPD5ATYOBZIGJQPCUBRJBX/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YACE6ORF2QBXXBK2V2CM36D7TZMEJVAS/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/THVTYHHEOVLQFCFHWURZYO7PVUPBHRZD/> (vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20221228-0004/> (advisory, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00012.html> (mailing-list, web)
- <https://security.gentoo.org/glsa/202401-27> (vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-33621> (advisory, web)
- <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%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://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)
- <https://security.netapp.com/advisory/ntap-20221228-0004> (web)
- <https://www.ruby-lang.org/en/news/2022/11/22/http-response-splitting-in-cgi-cve-2021-33621> (web)

## Sources

- CVE List: [CVE-2021-33621](https://www.cve.org/CVERecord?id=CVE-2021-33621), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-vc47-6rqg-c7f5](https://github.com/advisories/GHSA-vc47-6rqg-c7f5), CC-BY-4.0, modified 2026-08-13
- NVD: [CVE-2021-33621](https://nvd.nist.gov/vuln/detail/CVE-2021-33621), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-RUBY-2021-33621](https://osv.dev/vulnerability/BIT-RUBY-2021-33621), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-RUBY-MIN-2021-33621](https://osv.dev/vulnerability/BIT-RUBY-MIN-2021-33621), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-33621 · Whole record: https://cve.day/CVE-2021-33621.json · Rebuilt by cve.day 2026-11-25T22:58:07.882Z
