Skip to content

HTTP response splitting in CGI

High severity GitHub Reviewed Published Nov 19, 2022 to the GitHub Advisory Database • Updated Jan 24, 2024

Package

bundler cgi (RubyGems)

Affected versions

>= 0.3.0, < 0.3.5
>= 0.2.0, < 0.2.2
< 0.1.0.2

Patched versions

0.3.5
0.2.2
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.

References

Published by the National Vulnerability Database Nov 18, 2022
Published to the GitHub Advisory Database Nov 19, 2022
Reviewed Nov 24, 2022
Last updated Jan 24, 2024

Severity

High
8.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2021-33621

GHSA ID

GHSA-vc47-6rqg-c7f5

Source code

No known source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.