VDB
KO
HIGH 8.8

GHSA-vc47-6rqg-c7f5

HTTP response splitting in CGI

Quick fix

GHSA-vc47-6rqg-c7f5 — cgi: upgrade to the fixed version with the command below.

bundle update cgi

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems / cgi
Introduced in: 0.3.0 Fixed in: 0.3.5
Fix bundle update cgi
RubyGems / cgi
Introduced in: 0.2.0 Fixed in: 0.2.2
Fix bundle update cgi
RubyGems / cgi
Introduced in: 0 Fixed in: 0.1.0.2
Fix bundle update cgi

References