8.8high
HTTP response splitting in CGI
- Severity
- 8.8high CVSS:3.1 by NVD
- Exploit likelihood
- 3.06% (higher than 87% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-vc47-6rqg-c7f5BIT-RUBY-2021-33621BIT-RUBY-MIN-2021-33621
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| cgi (RubyGems) | from 0.3.0 before 0.3.5, from 0.2.0 before 0.2.2, before 0.1.0.2 | GitHub Advisory Database |
| ruby-lang cgi | before 0.1.0.2, from 0.2.0 before 0.2.2, from 0.3.0 before 0.3.5 | NVD |
| fedoraproject fedora | 35, 36, 37 | NVD |
| 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 | NVD |
| 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 | Bitnami Vulnerability Database |
| 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 | Bitnami Vulnerability Database |
All scores
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Ruby gem cgi.rb prior to versions 0.3.5, 0.2.2 and 0.1.0.2 allow HTTP header injection. If a CGI application using the CGI library inserts untrusted input into the HTTP response header, an attacker can exploit it to insert a newline character to split a header, and inject malicious content to deceive clients. This issue has been patched in versions 0.3.5, 0.2.2 and 0.1.0.2.
NVD (es)
La gema cgi anterior a 0.1.0.2, 0.2.x anterior a 0.2.2 y 0.3.x anterior a 0.3.5 para Ruby permite la división de respuestas HTTP. Esto es relevante para aplicaciones que utilizan entradas de usuarios que no son de confianza, ya sea para generar una respuesta HTTP o para crear un objeto CGI::Cookie.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-33621 changed 2025-11-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vc47-6rqg-c7f5 changed 2026-08-13 | CC-BY-4.0 |
| NVD | CVE-2021-33621 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-RUBY-2021-33621 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-RUBY-MIN-2021-33621 changed 2026-09-08 | Apache-2.0 |