CVSS 3.1
9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCritical (9.8). EPSS 4.9% estimated probability of exploitation activity in the next 30 days. Fixed in cgi 0.1.0.1, 0.2.1, 0.3.1.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hcgi (RubyGems): fixed in 0.3.1, 0.2.1, 0.1.0.1Explain CVE-2021-41816 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-41816?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-41816?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-41816 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| ruby-lang:cgi | before 0.3.1 |
| ruby-lang:cgi | through 0.2.0 |
| ruby-lang:cgi | through 0.1.0 |
| fedoraproject:fedora | 34 |
| fedoraproject:fedora | 35 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-5cqm-crxm-6qpv | RubyGems | cgi | >=0.3.0 <0.3.1 | 0.3.1 |
| GHSA-5cqm-crxm-6qpv | RubyGems | cgi | >=0.2.0 <0.2.1 | 0.2.1 |
| GHSA-5cqm-crxm-6qpv | RubyGems | cgi | <0.1.0.1 | 0.1.0.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | ruby2.7 | 2.7.4-1+deb11u1 | DEBIAN-CVE-2021-41816 DSA-5067-1 |
| Ubuntu | 18.04:LTS | ruby2.5 | 2.5.1-1ubuntu1.11 | USN-5235-1 |
| Ubuntu | 20.04:LTS | ruby2.7 | 2.7.0-5ubuntu1.6 | UBUNTU-CVE-2021-41816 USN-5235-1 |
| Ubuntu | 22.04:LTS | ruby3.0 | 3.0.2-7ubuntu2 | UBUNTU-CVE-2021-41816 |
| Ubuntu | Pro:16.04:LTS | ruby2.3 | 2.3.1-2~ubuntu16.04.16+esm2 | USN-5235-1 |
| Red Hat | rhel_software_collections:3::el7 | rh-ruby27-ruby, rh-ruby27-ruby-doc, rh-ruby27-ruby-libs and 2 more | 0:2.7.6-131.el7 | RHSA-2022:6856 |
| Red Hat | rhel_software_collections:3::el7 | rh-ruby27-rubygem-bigdecimal | 0:2.0.0-131.el7 | RHSA-2022:6856 |
| Red Hat | rhel_software_collections:3::el7 | rh-ruby27-rubygem-bundler | 0:2.2.24-131.el7 | RHSA-2022:6856 |
| Red Hat | rhel_software_collections:3::el7 | rh-ruby27-rubygem-did_you_mean | 0:1.4.0-131.el7 | RHSA-2022:6856 |
| Red Hat | rhel_software_collections:3::el7 | rh-ruby27-rubygem-io-console | 0:0.5.6-131.el7 | RHSA-2022:6856 |
| Red Hat | rhel_software_collections:3::el7 | rh-ruby27-rubygem-irb | 0:1.2.6-131.el7 | RHSA-2022:6856 |
| Red Hat | rhel_software_collections:3::el7 | rh-ruby27-rubygem-json | 0:2.3.0-131.el7 | RHSA-2022:6856 |
| Red Hat | rhel_software_collections:3::el7 | rh-ruby27-rubygem-minitest | 0:5.13.0-131.el7 | RHSA-2022:6856 |
| Red Hat | rhel_software_collections:3::el7 | rh-ruby27-rubygem-net-telnet | 0:0.2.0-131.el7 | RHSA-2022:6856 |
| Red Hat | rhel_software_collections:3::el7 | rh-ruby27-rubygem-openssl | 0:2.1.3-131.el7 | RHSA-2022:6856 |
| Red Hat | rhel_software_collections:3::el7 | rh-ruby27-rubygem-power_assert | 0:1.1.7-131.el7 | RHSA-2022:6856 |
| Red Hat | rhel_software_collections:3::el7 | rh-ruby27-rubygem-psych | 0:3.1.0-131.el7 | RHSA-2022:6856 |
| 22 more for Red Hat in the JSON and on Red Hat's page. | ||||
| openSUSE | Tumbleweed | ruby2.7 | 2.7.5-1.1 | openSUSE-SU-2024:11657-1 |
| openSUSE | Tumbleweed | ruby3.0 | 3.0.3-1.1 | openSUSE-SU-2024:11658-1 |
| openSUSE | Tumbleweed | ruby3.1 | 3.1.0-1.1 | openSUSE-SU-2024:11786-1 |
| openSUSE | Tumbleweed | ruby3.2 | 3.2.1-1.1 | openSUSE-SU-2024:12712-1 |
| openSUSE | Tumbleweed | ruby3.3 | 3.3.0-1.2 | openSUSE-SU-2024:13623-1 |
| openSUSE | Tumbleweed | ruby3.4 | 3.4.1-1.1 | openSUSE-SU-2025:14621-1 |
| openSUSE | Tumbleweed | ruby4.0 | 4.0.0~preview2-1.1 | openSUSE-SU-2025:15819-1 |
| Alpine | v3.12, v3.13, v3.14 | ruby | 2.7.5-r0 | ALPINE-CVE-2021-41816 |
| Alpine | v3.15, v3.16, v3.17 and 7 more | ruby | 3.0.3-r0 | ALPINE-CVE-2021-41816 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpine.
Red Hat rates this Moderate.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby30-ruby-0:3.0.4-149.el7 | Fixed 2022-10-11 | RHSA-2022:6855 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby27-ruby-0:2.7.6-131.el7 | Fixed 2022-10-11 | RHSA-2022:6856 |
| Red Hat Enterprise Linux 6 | ruby | Not affected | |
| Red Hat Enterprise Linux 7 | ruby | Not affected | |
| Red Hat Enterprise Linux 8 | ruby:2.5/ruby | Not affected | |
| Red Hat Enterprise Linux 8 | ruby:2.6/ruby | Not affected | |
| Red Hat Enterprise Linux 8 | ruby:2.7/ruby | Not affected | |
| Red Hat Enterprise Linux 8 | ruby:3.0/ruby | Not affected | |
| Red Hat Enterprise Linux 9 | ruby | Not affected | |
| Red Hat Software Collections | rh-ruby26-ruby | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-41816.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.