Advisory

GHSA-vc47-6rqg-c7f5

Also known as: BIT-ruby-2021-33621, BIT-ruby-min-2021-33621, CVE-2021-33621

Summary

HTTP response splitting in 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-11-19 00:30 UTC
Modified
2026-08-13 20:11 UTC

Affected packages and fixes

cgi

RubyGems · All systems

Affected

  • introduced 0.3.0, fixed 0.3.5 (ecosystem)

Fixed versions

0.3.5

Fix

The export has no generic command for this ecosystem.

cgi

RubyGems · All systems

Affected

  • introduced 0.2.0, fixed 0.2.2 (ecosystem)

Fixed versions

0.2.2

Fix

The export has no generic command for this ecosystem.

cgi

RubyGems · All systems

Affected

  • introduced 0, fixed 0.1.0.2 (ecosystem)

Fixed versions

0.1.0.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences