{"id":"CVE-2021-33621","published":"2022-11-18T00:00:00Z","modified":"2025-11-04T16:09:15Z","title":"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","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0306,"percentile":0.87919,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.ruby-lang.org/en/news/2022/11/22/http-response-splitting-in-cgi-cve-2021-33621/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DQR7LWED6VAPD5ATYOBZIGJQPCUBRJBX/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YACE6ORF2QBXXBK2V2CM36D7TZMEJVAS/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/THVTYHHEOVLQFCFHWURZYO7PVUPBHRZD/","tags":["vendor-advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20221228-0004/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00012.html","tags":["mailing-list"]},{"url":"https://security.gentoo.org/glsa/202401-27","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html","tags":[]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":17.58}]},"affected":[{"ecosystem":"RubyGems","package":"cgi","vulnerableRanges":[">=0.3.0, <0.3.5",">=0.2.0, <0.2.2","<0.1.0.2"],"patched":["0.3.5","0.2.2","0.1.0.2"],"from":["GHSA-vc47-6rqg-c7f5"],"provenance":"source"}],"summary":{"text":"The cgi gem for Ruby, in versions before 0.1.0.2, 0.2.x before 0.2.2, and 0.3.x before 0.3.5, contains a flaw that permits HTTP response splitting. It affects applications that pass untrusted user input into generating an HTTP response or into creating a CGI::Cookie object. An attacker who can supply the affected input to such an application can inject line breaks into the HTTP response, allowing them to add headers or split the response into multiple responses.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:06Z"},"euvd":{"id":"EUVD-2022-7435","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-41816","published":"2022-02-06","fixed":"0.3.1","kev":false,"link":{"from":"CVE-2021-41816","to":"CVE-2021-33621","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:cgi","fromFixed":"0.3.1","toFixed":"0.3.5","daysApart":285},{"kind":"version-step","provenance":"source","package":"RubyGems:cgi","fromFixed":"0.2.1","toFixed":"0.2.2","daysApart":285}]}},{"cve":"CVE-2021-41819","published":"2022-01-01","fixed":"0.3.1","kev":false},{"cve":"CVE-2021-33621","published":"2022-11-18","fixed":"0.3.5","kev":false},{"cve":"CVE-2025-27219","published":"2025-03-03","fixed":"0.4.2","kev":false},{"cve":"CVE-2025-27220","published":"2025-03-03","fixed":"0.4.2","kev":false}],"package":"RubyGems:cgi"}}