CVE-2021-41819
ruby: Cookie prefix spoofing in CGI::Cookie.parse
Overview
Description
CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names. This also affects the CGI gem through 0.3.0 for Ruby.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-565
Affected packages · 4
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | ruby | <2.6.9>=2.7.0, <2.7.5>=3.0.0, <3.0.3 | 2.6.92.7.53.0.3 |
| Bitnami | ruby-min | <2.6.9>=2.7.0, <2.7.5>=3.0.0, <3.0.3 | 2.6.92.7.53.0.3 |
| Julia | ruby_jll | >=0 | No fix yet |
| RubyGems | cgi | >=0.3.0, <0.3.1>=0.2.0, <0.2.1<0.1.0.1 | 0.3.10.2.10.1.0.1~> 0.1.0.1~> 0.1.1 |
Open a package to see all its vulnerabilities.
Operating systems · 469 fixes
Oracle Linux 1 release · 28 packages
fixed 28
rubygem-typeprof
rubygem-net-telnet
rubygem-rss
rubygem-xmlrpc
rubygem-abrt
rubygem-mysql2
+22
| Release | Package | Fixed in |
|---|---|---|
| 8 | rubygem-typeprof | 0.15.2-141.module+el8.6.0+20741+4fdba061 |
| 8 | rubygem-net-telnet | 0.2.0-138.module+el8.6.0+20740+358d9979 |
| 8 | rubygem-rss | 0.2.9-141.module+el8.6.0+20741+4fdba061 |
| 8 | rubygem-xmlrpc | 0.3.0-138.module+el8.6.0+20740+358d9979 |
| 8 | rubygem-abrt +1 | 0.4.0-1.module+el8.5.0+20321+0ba6c954 |
| 8 | rubygem-mysql2 +1 | 0.5.3-1.module+el8.5.0+20321+0ba6c954 |
22 more rows
Photon OS 1 release · 1 package
fixed 1
ruby
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | ruby +1 | 2.7.4-6.ph4 |
Red Hat 5 releases · 77 packages
eol 1
fixed 201
ruby
rh-ruby30-rubygem-typeprof
rh-ruby26-rubygem-net-telnet
rh-ruby27-rubygem-net-telnet
rh-ruby30-rubygem-rss
rh-ruby26-rubygem-xmlrpc
+71
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | ruby +14 | eol | — |
| 7 | rh-ruby30-rubygem-typeprof | 0:0.15.2-149.el7 | RHSA-2022:6855 |
| 7 | rh-ruby26-rubygem-net-telnet | 0:0.2.0-120.el7 | RHSA-2022:0708 |
| 7 | rh-ruby27-rubygem-net-telnet | 0:0.2.0-131.el7 | RHSA-2022:6856 |
| 7 | rh-ruby30-rubygem-rss | 0:0.2.9-149.el7 | RHSA-2022:6855 |
| 7 | rh-ruby26-rubygem-xmlrpc | 0:0.3.0-120.el7 | RHSA-2022:0708 |
196 more rows
SUSE Linux Enterprise 1 release · 1 package
fixed 1
libruby2-5-2-5
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | libruby2-5-2-5 +4 | 2.5.9-150000.4.26.1 | SUSE-SU-2022:3292-1 |
alma 4 releases · 30 packages
fixed 88
rubygem-net-telnet
rubygem-xmlrpc
rubygem-abrt
rubygem-mysql2
rubygem-io-console
rubygem-pg
+24
| Release | Package | Fixed in |
|---|---|---|
| 8 (ruby:2.5) | rubygem-net-telnet | 0.1.1-110.module_el8.6.0+3074+4b08f9d4 |
| 8 (ruby:2.5) | rubygem-xmlrpc | 0.3.0-110.module_el8.6.0+3074+4b08f9d4 |
| 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-110.module_el8.6.0+3074+4b08f9d4 |
| 8 (ruby:2.5) | rubygem-pg +1 | 1.0.0-2.module_el8.5.0+2625+ec418553 |
82 more rows
alpine 4 releases · 1 package
fixed 4
ruby
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | ruby | 3.0.3-r0 |
| 3.23 | ruby | 3.0.3-r0 |
| 3.24 | ruby | 3.0.3-r0 |
| edge | ruby | 3.0.3-r0 |
debian 3 releases · 3 packages
fixed 3
ruby2-5
ruby2-7
ruby2-3
| Release | Package | Fixed in |
|---|---|---|
| 10 | ruby2-5 | 2.5.5-3+deb10u4 |
| 11 | ruby2-7 | 2.7.4-1+deb11u1 |
| 9 | ruby2-3 | 2.3.3-1+deb9u11 |
openSUSE 1 release · 7 packages
fixed 7
libruby2-7-2-7
libruby3-0-3-0
libruby3-1-3-1
libruby3-2-3-2
libruby3-3-3-3
libruby3-4-3-4
+1
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libruby2-7-2-7 +5 | 2.7.5-1.1 | openSUSE-SU-2024:11657-1 |
| Tumbleweed | libruby3-0-3-0 +5 | 3.0.3-1.1 | openSUSE-SU-2024:11658-1 |
| Tumbleweed | libruby3-1-3-1 +5 | 3.1.0-1.1 | openSUSE-SU-2024:11786-1 |
| Tumbleweed | libruby3-2-3-2 +5 | 3.2.1-1.1 | openSUSE-SU-2024:12712-1 |
| Tumbleweed | libruby3-3-3-3 +5 | 3.3.0-1.2 | openSUSE-SU-2024:13623-1 |
| Tumbleweed | libruby3-4-3-4 +5 | 3.4.1-1.1 | openSUSE-SU-2025:14621-1 |
1 more row
rocky 5 releases · 26 packages
fixed 130
rubygem-net-telnet
rubygem-xmlrpc
rubygem-io-console
rubygem-power-assert
rubygem-bundler
rubygem-did-you-mean
+20
| Release | Package | Fixed in |
|---|---|---|
| 8 | rubygem-net-telnet | 0.1.1-110.module+el8.6.0+992+fc951c18 |
| 8 | rubygem-xmlrpc | 0.3.0-110.module+el8.6.0+992+fc951c18 |
| 8 | rubygem-io-console | 0.4.6-110.module+el8.6.0+992+fc951c18 |
| 8 | rubygem-power-assert | 1.1.1-110.module+el8.6.0+992+fc951c18 |
| 8 | rubygem-bundler +1 | 1.16.1-4.module+el8.6.0+992+fc951c18 |
| 8 | rubygem-did-you-mean | 1.2.0-110.module+el8.6.0+992+fc951c18 |
124 more rows
ubuntu 5 releases · 3 packages
fixed 5
ruby2-5
ruby2-7
ruby3-0
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | ruby2-5 | 2.5.1-1ubuntu1.11 |
| 18.04-ESM | ruby2-5 | 2.5.1-1ubuntu1.11 |
| 20.04 | ruby2-7 | 2.7.0-5ubuntu1.6 |
| 20.04-ESM | ruby2-7 | 2.7.0-5ubuntu1.6 |
| 22.04 | ruby3-0 | 3.0.2-7ubuntu2 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2022:6450
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-41819
- bugzilla.redhat.com https://bugzilla.redhat.com/2025104
- bugzilla.redhat.com https://bugzilla.redhat.com/2026757
- bugzilla.redhat.com https://bugzilla.redhat.com/2075685
- bugzilla.redhat.com https://bugzilla.redhat.com/2075687
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2025104
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2026757
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075685
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2075687
Show all 38 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2109431
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2110981
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41817
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41819
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28738
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28739
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2022-6450.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2022:6450
- github.com https://github.com/ruby/cgi
- github.com https://github.com/ruby/cgi/commit/052eb3a828b0f99bca39cfd800f6c2b91307dbd5
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2021-41819.yml
- hackerone.com https://hackerone.com/reports/910552
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-41819.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2022-6450.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-41819
- security.gentoo.org https://security.gentoo.org/glsa/202401-27
- security.netapp.com https://security.netapp.com/advisory/ntap-20220121-0003
- security.netapp.com https://security.netapp.com/advisory/ntap-20220121-0003/
- ubuntu.com https://ubuntu.com/security/notices/USN-5235-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-41819
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819/
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.