Vulnerabilities · 2021 · Ruby-lang
CVE-2021-33621
Ruby-lang Cgi vulnerability
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.
Affected products
Cgi, Fedora, Ruby. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Cgi runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- security.netapp.com/advisory/ntap-20221228-0004/ · Third Party Advisory
- www.ruby-lang.org/en/news/2022/11/22/http-response-splitting-in-cgi-cve-2021-33621/ · Exploit
- nvd.nist.gov/vuln/detail/CVE-2021-33621
- hackerone.com/reports/1204695
- github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2021-33621.yml
- lists.debian.org/debian-lts-announce/2023/06/msg00012.html
- security.gentoo.org/glsa/202401-27
- lists.debian.org/debian-lts-announce/2024/09/msg00000.html
- nvd.nist.gov/vuln/detail/CVE-2021-33621
- cve.org/CVERecord?id=CVE-2021-33621
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.