REDHAT-BUG-2149706: Medium severity ruby cgi gem vulnerability
cgi.rb in Ruby through 2.6.x, through 3.0x, and through 3.1.x allows 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.
References: https://www.ruby-lang.org/en/security/ https://www.ruby-lang.org/en/news/2022/11/22/http-response-splitting-in-cgi-cve-2021-33621/ https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2021-33621.yml https://github.com/ruby/cgi/compare/v0.1.0.1...v0.1.0.2
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2149706?
The severity of REDHAT-BUG-2149706 is considered critical due to the potential for HTTP header injection leading to security compromises.
How do I fix REDHAT-BUG-2149706?
To fix REDHAT-BUG-2149706, update Ruby CGI to a version beyond 3.1.x that resolves the vulnerability.
What versions of Ruby are affected by REDHAT-BUG-2149706?
Ruby versions 2.6.x, 3.0.x, and 3.1.x are affected by REDHAT-BUG-2149706.
What types of attacks are possible with REDHAT-BUG-2149706?
Exploiting REDHAT-BUG-2149706 can allow attackers to conduct HTTP response splitting attacks that may lead to content injection or web cache poisoning.
Is user input a factor in REDHAT-BUG-2149706?
Yes, untrusted user input being inserted into HTTP response headers is a key factor in the exploitation of REDHAT-BUG-2149706.