GitHub Advisoryadvisory · RubyGems

GHSA-vc47-6rqg-c7f5 HTTP response splitting in CGI

HIGH Published 2022-11-19 Modified 2025-11-04 Official page ↗
Aliases
CVE-2021-33621
Ecosystem
RubyGems
Packages
cgi
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-436, CWE-74
Reviewed
2022-11-24

Affected packages

• RubyGems cgi: >= 0.3.0, < 0.3.5 → fixed in 0.3.5 • RubyGems cgi: >= 0.2.0, < 0.2.2 → fixed in 0.2.2 • RubyGems cgi: < 0.1.0.2 → fixed in 0.1.0.2

Description

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.

Related

Alias · CVE (1)

  • CVE-2021-33621 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. vulnerability

Weakness · CWE (2)

  • CWE-436 Interpretation Conflict weakness
  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness

References