CVE Vulnerabilities

CVE-2021-33621

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Published: Nov 18, 2022 | Modified: Nov 21, 2024
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
8.8 MODERATE
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM

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. This is relevant to applications that use untrusted user input either to generate an HTTP response or to create a CGI::Cookie object.

Weakness

The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.

Affected Software

Name Vendor Start Version End Version
Cgi Ruby-lang * 0.1.0.2 (excluding)
Cgi Ruby-lang 0.2.0 (including) 0.2.2 (excluding)
Cgi Ruby-lang 0.3.0 (including) 0.3.5 (excluding)
Red Hat Enterprise Linux 8 RedHat ruby:2.7-8080020230427102918.63b34585 *
Red Hat Enterprise Linux 8 RedHat ruby:2.5-8090020230627084142.b46abd14 *
Red Hat Enterprise Linux 8 RedHat ruby:3.1-8090020240311122605.a75119d5 *
Red Hat Enterprise Linux 8 RedHat ruby:3.0-8100020240522072634.489197e6 *
Red Hat Enterprise Linux 9 RedHat ruby:3.1-9030020240320163942.9 *
Red Hat Enterprise Linux 9 RedHat ruby-0:3.0.7-162.el9_4 *
Red Hat Enterprise Linux 9.2 Extended Update Support RedHat ruby-0:3.0.4-161.el9_2.1 *
Red Hat Software Collections for Red Hat Enterprise Linux 7 RedHat rh-ruby27-ruby-0:2.7.8-132.el7 *
Jruby Ubuntu bionic *
Jruby Ubuntu lunar *
Jruby Ubuntu mantic *
Jruby Ubuntu trusty *
Jruby Ubuntu trusty/esm *
Jruby Ubuntu xenial *
Ruby1.9.1 Ubuntu trusty *
Ruby2.0 Ubuntu trusty *
Ruby2.3 Ubuntu esm-infra/xenial *
Ruby2.3 Ubuntu upstream *
Ruby2.3 Ubuntu xenial *
Ruby2.5 Ubuntu bionic *
Ruby2.7 Ubuntu focal *
Ruby3.0 Ubuntu jammy *
Ruby3.0 Ubuntu kinetic *
Ruby3.1 Ubuntu kinetic *
Ruby3.1 Ubuntu upstream *

Potential Mitigations

References