CVE-2021-33621
ruby/cgi-gem: HTTP response splitting in CGI
Overview
Description
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.
Source: OX vulnerability database
Severity
8.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- 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
Weakness: CWE-74
Affected packages · 4
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | ruby | >=2.7.0, <2.7.7>=3.0.0, <3.0.5>=3.1.0, <3.1.3 | 2.7.73.0.53.1.3 |
| Bitnami | ruby-min | >=2.7.0, <2.7.7>=3.0.0, <3.0.5>=3.1.0, <3.1.3 | 2.7.73.0.53.1.3 |
| Julia | ruby_jll | >=0 | No fix yet |
| RubyGems | cgi | >=0.3.0, <0.3.5>=0.2.0, <0.2.2<0.1.0.2 | 0.3.50.2.20.1.0.2~> 0.1.0.2~> 0.2.2 |
Open a package to see all its vulnerabilities.
Operating systems · 430 fixes
Oracle Linux 2 releases · 28 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | rubygem-net-telnet | 0.2.0-139.module+el8.8.0+21111+2e34bf27 |
| 8 | rubygem-rss | 0.2.9-143.module+el8.10.0+90343+d5e92a1d |
| 8 | rubygem-typeprof | 0.21.3-142.module+el8.9.0+90182+7bdfc9e5 |
| 8 | rubygem-xmlrpc | 0.3.0-139.module+el8.8.0+21111+2e34bf27 |
| 8 | rubygem-abrt +1 | 0.4.0-1.module+el8.10.0+90343+d5e92a1d |
| 8 | rubygem-io-console | 0.5.11-142.module+el8.9.0+90182+7bdfc9e5 |
41 more rows
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | ruby +1 | 2.7.4-6.ph4 |
| 5.0 | ruby +1 | 3.1.2-5.ph5 |
Red Hat 7 releases · 44 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | ruby +14 | eol | — |
| 7 | rh-ruby27-rubygem-net-telnet | 0:0.2.0-132.el7 | RHSA-2023:3291 |
| 7 | rh-ruby27-rubygem-xmlrpc | 0:0.3.0-132.el7 | RHSA-2023:3291 |
| 7 | rh-ruby27-rubygem-io-console | 0:0.5.6-132.el7 | RHSA-2023:3291 |
| 7 | rh-ruby27-rubygem-power-assert | 0:1.1.7-132.el7 | RHSA-2023:3291 |
| 7 | rh-ruby27-rubygem-irb | 0:1.2.6-132.el7 | RHSA-2023:3291 |
148 more rows
SUSE Linux Enterprise 2 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | libruby2-5-2-5 +4 | 2.5.9-150000.4.29.1 | SUSE-SU-2023:4176-1 |
| 15.5 | libruby2-5-2-5 +4 | 2.5.9-150000.4.29.1 | SUSE-SU-2023:4176-1 |
alma 6 releases · 26 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (ruby:2.5) | rubygem-net-telnet | 0.1.1-111.module_el8.9.0+3635+c6f99506 |
| 8 (ruby:2.5) | rubygem-xmlrpc | 0.3.0-111.module_el8.9.0+3635+c6f99506 |
| 8 (ruby:2.5) | rubygem-abrt +1 | 0.3.0-4.module_el8.5.0+2625+ec418553 |
| 8 (ruby:2.5) | rubygem-mysql2 +1 | 0.4.10-4.module_el8.5.0+2625+ec418553 |
| 8 (ruby:2.5) | rubygem-io-console | 0.4.6-111.module_el8.9.0+3635+c6f99506 |
| 8 (ruby:2.5) | rubygem-pg +1 | 1.0.0-3.module_el8.9.0+3635+c6f99506 |
112 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | ruby | 3.1.3-r0 |
| 3.23 | ruby | 3.1.3-r0 |
| 3.24 | ruby | 3.1.3-r0 |
| edge | ruby | 3.1.3-r0 |
debian 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | ruby2-5 | 2.5.5-3+deb10u6 |
| 11 | ruby2-7 | 2.7.4-1+deb11u2 |
| 12 | ruby3-1 | 3.1.2-4 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| ruby3-1 | 3.1.2-4 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libruby3-1-3-1 +5 | 3.1.3-1.1 | openSUSE-SU-2024:12539-1 |
rocky 5 releases · 26 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (ruby:2.5) | rubygem-net-telnet | 0.1.1-111.module+el8.9.0+1536+5f79634e |
| 8 (ruby:2.5) | rubygem-xmlrpc | 0.3.0-111.module+el8.9.0+1536+5f79634e |
| 8 (ruby:2.5) | rubygem-abrt +1 | 0.3.0-4.module+el8.5.0+738+032c9c02 |
| 8 (ruby:2.5) | rubygem-abrt +1 | 0.3.0-4.module+el8.9.0+1536+5f79634e |
| 8 (ruby:2.5) | rubygem-mysql2 +1 | 0.4.10-4.module+el8.9.0+1536+5f79634e |
| 8 (ruby:2.5) | rubygem-io-console | 0.4.6-111.module+el8.9.0+1536+5f79634e |
87 more rows
ubuntu 5 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | ruby2-5 | 2.5.1-1ubuntu1.13 |
| 18.04-ESM | ruby2-5 | 2.5.1-1ubuntu1.13 |
| 20.04 | ruby2-7 | 2.7.0-5ubuntu1.8 |
| 20.04-ESM | ruby2-7 | 2.7.0-5ubuntu1.8 |
| 22.04 | ruby3-0 | 3.0.2-7ubuntu2.3 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:3500
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:3838
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-33621
- bugzilla.redhat.com https://bugzilla.redhat.com/2149706
- bugzilla.redhat.com https://bugzilla.redhat.com/2184059
- bugzilla.redhat.com https://bugzilla.redhat.com/2184061
- bugzilla.redhat.com https://bugzilla.redhat.com/2270749
- bugzilla.redhat.com https://bugzilla.redhat.com/2270750
- bugzilla.redhat.com https://bugzilla.redhat.com/2276810
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2149706
Show all 52 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2184059
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2184061
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2270749
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2270750
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2276810
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33621
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-28755
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-28756
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-27280
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-27281
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-27282
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2024-3838.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2024:3500
- github.com https://github.com/ruby/cgi/commit/64c5045c0a6b84fdb938a8465a0890e5f7162708
- github.com https://github.com/ruby/cgi/commit/b46d41c36380e04f6388970b5ef05c687f4d1819
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2021-33621.yml
- hackerone.com https://hackerone.com/reports/1204695
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-33621.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2024-3838.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/06/msg00012.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DQR7LWED6VAPD5ATYOBZIGJQPCUBRJBX
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DQR7LWED6VAPD5ATYOBZIGJQPCUBRJBX/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/THVTYHHEOVLQFCFHWURZYO7PVUPBHRZD
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/THVTYHHEOVLQFCFHWURZYO7PVUPBHRZD/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YACE6ORF2QBXXBK2V2CM36D7TZMEJVAS
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YACE6ORF2QBXXBK2V2CM36D7TZMEJVAS/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DQR7LWED6VAPD5ATYOBZIGJQPCUBRJBX
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/THVTYHHEOVLQFCFHWURZYO7PVUPBHRZD
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YACE6ORF2QBXXBK2V2CM36D7TZMEJVAS
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-33621
- security.gentoo.org https://security.gentoo.org/glsa/202401-27
- security.netapp.com https://security.netapp.com/advisory/ntap-20221228-0004
- security.netapp.com https://security.netapp.com/advisory/ntap-20221228-0004/
- ubuntu.com https://ubuntu.com/security/notices/USN-5806-1
- ubuntu.com https://ubuntu.com/security/notices/USN-5806-2
- ubuntu.com https://ubuntu.com/security/notices/USN-5806-3
- ubuntu.com https://ubuntu.com/security/notices/USN-6181-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-33621
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2022/11/22/http-response-splitting-in-cgi-cve-2021-33621
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2022/11/22/http-response-splitting-in-cgi-cve-2021-33621/
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.