CVE-2021-41816
Buffer overrun in CGI.escape_html
CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on platforms (such as Windows) where size_t and long have different numbers of bytes. This also affects the CGI gem before 0.3.1 for Ruby.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on platforms (such as Windows) where size_t and long have different numbers of bytes. This also affects the CGI gem before 0.3.1 for Ruby.
- Record
CVE-2021-41816- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-190
- Updated
- 2026-11-02
CVE List No score
CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on platforms (such as Windows) where size_t and long have different numbers of bytes. This also affects the CGI gem before 0.3.1 for Ruby.
- Record
CVE-2021-41816- Updated
- 2026-11-02
EUVDEUVD-2021-2447 No score
CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on platforms (such as Windows) where size_t and long have different numbers of bytes. This also affects the CGI gem before 0.3.1 for Ruby.
- Record
EUVD-2021-2447- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-5cqm-crxm-6qpv
9.8
Buffer overrun in CGI.escape_html
A buffer overrun vulnerability was discovered in CGI.escape_html. This can lead to a buffer overflow when a user passes a very large string (> 700 MB) to CGI.escape_html on a platform where long type takes 4 bytes, typically, Windows.
- Record
GHSA-5cqm-crxm-6qpv- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-41816
9.8
CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on platforms (such as Windows) where size_t and long have different numbers of bytes. This also affects the CGI gem before 0.3.1 for Ruby.
- Record
ALPINE-CVE-2021-41816- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2021-41816
9.8
CVE-2021-41816 does not affect BellSoft software
- Record
BELL-CVE-2021-41816- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 15 moreShow less
OSV
9.8
CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on platforms (such as Windows) where size_t and long have different numbers of bytes. This also affects the CGI gem before 0.3.1 for Ruby.
- Record
CVE-2021-41816- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-41816
9.8
CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on platforms (such as Windows) where size_t and long have different numbers of bytes. This also affects the CGI gem before 0.3.1 for Ruby.
- Record
DEBIAN-CVE-2021-41816- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-5cqm-crxm-6qpv
9.8
Buffer overrun in CGI.escape_html
A buffer overrun vulnerability was discovered in CGI.escape_html. This can lead to a buffer overflow when a user passes a very large string (> 700 MB) to CGI.escape_html on a platform where long type takes 4 bytes, typically, Windows.
- Record
GHSA-5cqm-crxm-6qpv- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVRHSA-2022:6855
7.7
Red Hat Security Advisory: rh-ruby30-ruby security, bug fix, and enhancement update
- Record
RHSA-2022:6855- CVSS 3.1
- 7.7 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
OSVRHSA-2022:6856
7.5
Red Hat Security Advisory: rh-ruby27-ruby security, bug fix, and enhancement update
- Record
RHSA-2022:6856- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-41816
9.8
CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on platforms (such as Windows) where size_t and long have different numbers of bytes. This also affects the CGI gem before 0.3.1 for Ruby.
- Record
UBUNTU-CVE-2021-41816- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2021-0579 No score
Updated ruby packages fix security vulnerability
Bundler sometimes chooses a dependency source based on the highest gem version number, which means that a rogue gem found at a public source may be chosen, even if the intended choice was a private gem that is a dependency of another private gem that is explicitly depended on by the application. (CVE-2020-36327)
The REXML gem does not properly address XML round-trip issues. An incorrect document can be produced after parsing and serializing. (CVE-2021-28965)
In RDoc it is possible to execute arbitrary code via | and tags in a filename. (CVE-2021-31799)
A malicious FTP server can use the PASV response to trick Net::FTP into connecting back to a given IP address and port. This potentially makes curl extract information about services that are otherwise private and not disclosed (e.g., the attacker can conduct port scans and service banner extractions). (CVE-2021-31810)
Ruby Net::IMAP does not raise an exception when StartTLS fails with an an unknown response, which might allow man-in-the-middle attackers to bypass the TLS protections by leveraging a network position between the client and the registry to block the StartTLS command, aka a "StartTLS stripping attack." (CVE-2021-32066)
Buffer Overrun in CGI.escape_html (CVE-2021-41816)
Regular Expression Denial of Service Vulnerability of Date Parsing Methods (CVE-2021-41817)
Cookie Prefix Spoofing in CGI::Cookie.parse (CVE-2021-41819)
- Record
MGASA-2021-0579- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11657-1 No score
libruby2_7-2_7-2.7.5-1.1 on GA media
These are all security issues fixed in the libruby2_7-2_7-2.7.5-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11657-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11658-1 No score
libruby3_0-3_0-3.0.3-1.1 on GA media
These are all security issues fixed in the libruby3_0-3_0-3.0.3-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11658-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11786-1 No score
libruby3_1-3_1-3.1.0-1.1 on GA media
These are all security issues fixed in the libruby3_1-3_1-3.1.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11786-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12712-1 No score
libruby3_2-3_2-3.2.1-1.1 on GA media
These are all security issues fixed in the libruby3_2-3_2-3.2.1-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12712-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13623-1 No score
libruby3_3-3_3-3.3.0-1.2 on GA media
These are all security issues fixed in the libruby3_3-3_3-3.3.0-1.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13623-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:14621-1 No score
libruby3_4-3_4-3.4.1-1.1 on GA media
These are all security issues fixed in the libruby3_4-3_4-3.4.1-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:14621-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15819-1 No score
libruby4_0-4_0-4.0.0~preview2-1.1 on GA media
These are all security issues fixed in the libruby4_0-4_0-4.0.0~preview2-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15819-1- Updated
- 2026-11-02
OSVUSN-5235-1 No score
ruby2.3, ruby2.5, ruby2.7 vulnerabilities
It was discovered that Ruby incorrectly handled certain HTML files. An attacker could possibly use this issue to cause a crash. This issue only affected Ubuntu 20.04 LTS, Ubuntu 21.04, and Ubuntu 21.10. (CVE-2021-41816)
It was discovered that Ruby incorrectly handled certain regular expressions. An attacker could possibly use this issue to cause a regular expression denial of service. (CVE-2021-41817)
It was discovered that Ruby incorrectly handled certain cookie names. An attacker could possibly use this issue to access or expose sensitive information. (CVE-2021-41819)
- Record
USN-5235-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
cgiRubyGems |
0.3.0 up to 0.3.1 | 0.3.1 |
cgiRubyGems |
0.2.0 up to 0.2.1 | 0.2.1 |
cgiRubyGems |
before 0.1.0.1 | 0.1.0.1 |
rubyAlpine:v3.12 |
before 2.7.5-r0 | 2.7.5-r0 |
rubyAlpine:v3.13 |
before 2.7.5-r0 | 2.7.5-r0 |
rubyAlpine:v3.14 |
before 2.7.5-r0 | 2.7.5-r0 |
rubyAlpine:v3.15 |
before 3.0.3-r0 | 3.0.3-r0 |
rubyAlpine:v3.16 |
before 3.0.3-r0 | 3.0.3-r0 |
rubyAlpine:v3.17 |
before 3.0.3-r0 | 3.0.3-r0 |
rubyAlpine:v3.18 |
before 3.0.3-r0 | 3.0.3-r0 |
Show 67 moreShow less
| Package | Affected | Fixed |
|---|---|---|
rubyAlpine:v3.19 |
before 3.0.3-r0 | 3.0.3-r0 |
rubyAlpine:v3.20 |
before 3.0.3-r0 | 3.0.3-r0 |
rubyAlpine:v3.21 |
before 3.0.3-r0 | 3.0.3-r0 |
rubyAlpine:v3.22 |
before 3.0.3-r0 | 3.0.3-r0 |
rubyAlpine:v3.23 |
before 3.0.3-r0 | 3.0.3-r0 |
rubyAlpine:v3.24 |
before 3.0.3-r0 | 3.0.3-r0 |
ruby2.7Debian:11 |
before 2.7.4-1+deb11u1, plus listed versions 2.7.4-1 |
2.7.4-1+deb11u1 |
ruby2.7Debian:11 From an advisory covering 3 CVEs |
before 2.7.4-1+deb11u1, plus listed versions 2.7.4-1 |
2.7.4-1+deb11u1 |
cgiRubyGems |
before 0.1.0.1, plus listed versions 0.1.0 |
0.1.0.1 |
rubyMageia:8 From an advisory covering 8 CVEs |
before 2.7.5-33.2.mga8 | 2.7.5-33.2.mga8 |
rh-ruby30-rubyRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:3.0.4-149.el7 | 0:3.0.4-149.el7 |
rh-ruby30-ruby-debuginfoRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:3.0.4-149.el7 | 0:3.0.4-149.el7 |
rh-ruby30-ruby-default-gemsRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:3.0.4-149.el7 | 0:3.0.4-149.el7 |
rh-ruby30-ruby-develRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:3.0.4-149.el7 | 0:3.0.4-149.el7 |
rh-ruby30-ruby-docRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:3.0.4-149.el7 | 0:3.0.4-149.el7 |
rh-ruby30-ruby-libsRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:3.0.4-149.el7 | 0:3.0.4-149.el7 |
rh-ruby30-rubygem-bigdecimalRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:3.0.0-149.el7 | 0:3.0.0-149.el7 |
rh-ruby30-rubygem-bundlerRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:2.2.33-149.el7 | 0:2.2.33-149.el7 |
rh-ruby30-rubygem-io-consoleRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:0.5.7-149.el7 | 0:0.5.7-149.el7 |
rh-ruby30-rubygem-irbRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:1.3.5-149.el7 | 0:1.3.5-149.el7 |
rh-ruby30-rubygem-jsonRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:2.5.1-149.el7 | 0:2.5.1-149.el7 |
rh-ruby30-rubygem-minitestRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:5.14.2-149.el7 | 0:5.14.2-149.el7 |
rh-ruby30-rubygem-power_assertRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:1.2.0-149.el7 | 0:1.2.0-149.el7 |
rh-ruby30-rubygem-psychRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:3.3.2-149.el7 | 0:3.3.2-149.el7 |
rh-ruby30-rubygem-rakeRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:13.0.3-149.el7 | 0:13.0.3-149.el7 |
rh-ruby30-rubygem-rbsRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:1.4.0-149.el7 | 0:1.4.0-149.el7 |
rh-ruby30-rubygem-rexmlRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:3.2.5-149.el7 | 0:3.2.5-149.el7 |
rh-ruby30-rubygem-rssRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:0.2.9-149.el7 | 0:0.2.9-149.el7 |
rh-ruby30-rubygem-test-unitRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:3.3.7-149.el7 | 0:3.3.7-149.el7 |
rh-ruby30-rubygem-typeprofRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:0.15.2-149.el7 | 0:0.15.2-149.el7 |
rh-ruby30-rubygemsRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:3.2.33-149.el7 | 0:3.2.33-149.el7 |
rh-ruby30-rubygems-develRed Hat:rhel_software_collections:3::el7 From an advisory covering 5 CVEs |
before 0:3.2.33-149.el7 | 0:3.2.33-149.el7 |
rh-ruby27-rubyRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:2.7.6-131.el7 | 0:2.7.6-131.el7 |
rh-ruby27-ruby-debuginfoRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:2.7.6-131.el7 | 0:2.7.6-131.el7 |
rh-ruby27-ruby-develRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:2.7.6-131.el7 | 0:2.7.6-131.el7 |
rh-ruby27-ruby-docRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:2.7.6-131.el7 | 0:2.7.6-131.el7 |
rh-ruby27-ruby-libsRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:2.7.6-131.el7 | 0:2.7.6-131.el7 |
rh-ruby27-rubygem-bigdecimalRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:2.0.0-131.el7 | 0:2.0.0-131.el7 |
rh-ruby27-rubygem-bundlerRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:2.2.24-131.el7 | 0:2.2.24-131.el7 |
rh-ruby27-rubygem-did_you_meanRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:1.4.0-131.el7 | 0:1.4.0-131.el7 |
rh-ruby27-rubygem-io-consoleRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:0.5.6-131.el7 | 0:0.5.6-131.el7 |
rh-ruby27-rubygem-irbRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:1.2.6-131.el7 | 0:1.2.6-131.el7 |
rh-ruby27-rubygem-jsonRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:2.3.0-131.el7 | 0:2.3.0-131.el7 |
rh-ruby27-rubygem-minitestRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:5.13.0-131.el7 | 0:5.13.0-131.el7 |
rh-ruby27-rubygem-net-telnetRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:0.2.0-131.el7 | 0:0.2.0-131.el7 |
rh-ruby27-rubygem-opensslRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:2.1.3-131.el7 | 0:2.1.3-131.el7 |
rh-ruby27-rubygem-power_assertRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:1.1.7-131.el7 | 0:1.1.7-131.el7 |
rh-ruby27-rubygem-psychRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:3.1.0-131.el7 | 0:3.1.0-131.el7 |
rh-ruby27-rubygem-raccRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:1.4.16-131.el7 | 0:1.4.16-131.el7 |
rh-ruby27-rubygem-rakeRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:13.0.1-131.el7 | 0:13.0.1-131.el7 |
rh-ruby27-rubygem-rdocRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:6.2.1.1-131.el7 | 0:6.2.1.1-131.el7 |
rh-ruby27-rubygem-test-unitRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:3.3.4-131.el7 | 0:3.3.4-131.el7 |
rh-ruby27-rubygem-xmlrpcRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:0.3.0-131.el7 | 0:0.3.0-131.el7 |
rh-ruby27-rubygemsRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:3.1.6-131.el7 | 0:3.1.6-131.el7 |
rh-ruby27-rubygems-develRed Hat:rhel_software_collections:3::el7 From an advisory covering 4 CVEs |
before 0:3.1.6-131.el7 | 0:3.1.6-131.el7 |
ruby2.7Ubuntu:20.04:LTS |
before 2.7.0-5ubuntu1.6, plus listed versions 2.7.0-12.7.0-22.7.0-32.7.0-42.7.0-4ubuntu1 Show 6 moreShow less2.7.0-5ubuntu12.7.0-5ubuntu1.12.7.0-5ubuntu1.22.7.0-5ubuntu1.32.7.0-5ubuntu1.42.7.0-5ubuntu1.5 |
2.7.0-5ubuntu1.6 |
ruby3.0Ubuntu:22.04:LTS |
before 3.0.2-7ubuntu2, plus listed versions 3.0.2-5ubuntu13.0.2-7 |
3.0.2-7ubuntu2 |
ruby2.3Ubuntu:Pro:16.04:LTS From an advisory covering 3 CVEs |
before 2.3.1-2~ubuntu16.04.16+esm2, plus listed versions 2.3.0-12.3.0-22.3.0-4ubuntu22.3.0-4ubuntu32.3.0-5ubuntu1 Show 15 moreShow less2.3.1-2~16.042.3.1-2~16.04.22.3.1-2~16.04.42.3.1-2~16.04.52.3.1-2~16.04.62.3.1-2~16.04.72.3.1-2~16.04.92.3.1-2~16.04.102.3.1-2~16.04.112.3.1-2~16.04.122.3.1-2~ubuntu16.04.132.3.1-2~ubuntu16.04.142.3.1-2~ubuntu16.04.152.3.1-2~ubuntu16.04.162.3.1-2~ubuntu16.04.16+esm1 |
2.3.1-2~ubuntu16.04.16+esm2 |
ruby2.5Ubuntu:18.04:LTS From an advisory covering 3 CVEs |
before 2.5.1-1ubuntu1.11, plus listed versions 2.5.0~preview1-1ubuntu22.5.0-4ubuntu12.5.0-4ubuntu42.5.0-5ubuntu12.5.0-6ubuntu1 Show 10 moreShow less2.5.1-1ubuntu12.5.1-1ubuntu1.12.5.1-1ubuntu1.22.5.1-1ubuntu1.42.5.1-1ubuntu1.52.5.1-1ubuntu1.62.5.1-1ubuntu1.72.5.1-1ubuntu1.82.5.1-1ubuntu1.92.5.1-1ubuntu1.10 |
2.5.1-1ubuntu1.11 |
ruby2.7Ubuntu:20.04:LTS From an advisory covering 3 CVEs |
before 2.7.0-5ubuntu1.6, plus listed versions 2.7.0-12.7.0-22.7.0-32.7.0-42.7.0-4ubuntu1 Show 6 moreShow less2.7.0-5ubuntu12.7.0-5ubuntu1.12.7.0-5ubuntu1.22.7.0-5ubuntu1.32.7.0-5ubuntu1.42.7.0-5ubuntu1.5 |
2.7.0-5ubuntu1.6 |
ruby2.7openSUSE:Tumbleweed From an advisory covering 3 CVEs |
before 2.7.5-1.1 | 2.7.5-1.1 |
ruby3.0openSUSE:Tumbleweed From an advisory covering 3 CVEs |
before 3.0.3-1.1 | 3.0.3-1.1 |
ruby3.1openSUSE:Tumbleweed From an advisory covering 9 CVEs |
before 3.1.0-1.1 | 3.1.0-1.1 |
ruby3.2openSUSE:Tumbleweed From an advisory covering 11 CVEs |
before 3.2.1-1.1 | 3.2.1-1.1 |
ruby3.3openSUSE:Tumbleweed From an advisory covering 12 CVEs |
before 3.3.0-1.2 | 3.3.0-1.2 |
ruby3.4openSUSE:Tumbleweed From an advisory covering 12 CVEs |
before 3.4.1-1.1 | 3.4.1-1.1 |
ruby4.0openSUSE:Tumbleweed From an advisory covering 12 CVEs |
before 4.0.0~preview2-1.1 | 4.0.0~preview2-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-41816 is a critical vulnerability (CVSS 9.8) in Ruby-lang Cgi, published December 2, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.90%, the 92nd percentile. Fixed in cgi 0.3.1.
References
hackerone.com/reports/1328463
ruby-lang.org/en/news/2021/11/24/buffer-overrun-in-cgi-escape_html-cve-2021-41816
security-tracker.debian.org/tracker/CVE-2021-41816
security.netapp.com/advisory/ntap-20220303-0006
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF
Show 69 moreShow less
security.gentoo.org/glsa/202401-27
nvd.nist.gov/vuln/detail/CVE-2021-41816
groups.google.com/g/ruby-security-ann/c/4MQ568ZG47c
lists.fedoraproject.org/archives/list/[email protected]/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN
lists.fedoraproject.org/archives/list/[email protected]/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF
github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2021-41816.yml
github.com/ruby/cgi/commit/959ccf0b6a672bcc64aeaa60c6e1f9e728f1e87f
github.com/ruby/cgi/commit/ad079c1cb5f58eba1ffac46da79995fcf94a3a6e
github.com/ruby/cgi/commit/c6a37a671b556eb06140ea89cc465136b24207a6
github.com/ruby/cgi/commit/c728632c1c09d46cfd4ecbff9caaa3651dd1002a
github.com/advisories/GHSA-5cqm-crxm-6qpv
security.alpinelinux.org/vuln/CVE-2021-41816
docs.bell-sw.com/security/cves/CVE-2021-41816
github.com/ruby/cgi
advisories.mageia.org/MGASA-2021-0579.html
bugs.mageia.org/show_bug.cgi?id=29004
ubuntu.com/security/notices/USN-4922-1
lists.fedoraproject.org/archives/list/[email protected]/thread/VF3QUOV6OJPCL64ZDHTQRENRJQZPZO6S
lists.opensuse.org/archives/list/[email protected]/thread/CMW3G6JZK6A7ZRJZ7VOMELHWOQBYPIOY
ubuntu.com/security/notices/USN-5020-1
lists.fedoraproject.org/archives/list/[email protected]/thread/MWXHK5UUHVSHF7HTHMX6JY3WXDVNIHSL
ruby-lang.org/en/news/2021/11/15/date-parsing-method-regexp-dos-cve-2021-41817
ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819
access.redhat.com/errata/RHSA-2022:6855
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2025104
bugzilla.redhat.com/show_bug.cgi?id=2026752
bugzilla.redhat.com/show_bug.cgi?id=2026757
bugzilla.redhat.com/show_bug.cgi?id=2075685
bugzilla.redhat.com/show_bug.cgi?id=2075687
bugzilla.redhat.com/show_bug.cgi?id=2128628
bugzilla.redhat.com/show_bug.cgi?id=2128629
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_6855.json
access.redhat.com/security/cve/CVE-2021-41816
cve.org/CVERecord?id=CVE-2021-41816
access.redhat.com/security/cve/CVE-2021-41817
cve.org/CVERecord?id=CVE-2021-41817
nvd.nist.gov/vuln/detail/CVE-2021-41817
access.redhat.com/security/cve/CVE-2021-41819
cve.org/CVERecord?id=CVE-2021-41819
nvd.nist.gov/vuln/detail/CVE-2021-41819
access.redhat.com/security/cve/CVE-2022-28738
cve.org/CVERecord?id=CVE-2022-28738
nvd.nist.gov/vuln/detail/CVE-2022-28738
ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022-28738
access.redhat.com/security/cve/CVE-2022-28739
cve.org/CVERecord?id=CVE-2022-28739
nvd.nist.gov/vuln/detail/CVE-2022-28739
ruby-lang.org/en/news/2022/04/12/buffer-overrun-in-string-to-float-cve-2022-28739
access.redhat.com/errata/RHSA-2022:6856
bugzilla.redhat.com/show_bug.cgi?id=2128631
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_6856.json
ubuntu.com/security/CVE-2021-41816
ubuntu.com/security/notices/USN-5235-1
ubuntu.com/security/CVE-2021-41817
ubuntu.com/security/CVE-2021-41819
suse.com/security/cve/CVE-2021-41816
suse.com/security/cve/CVE-2021-41817
suse.com/security/cve/CVE-2021-41819
suse.com/security/cve/CVE-2020-10663
suse.com/security/cve/CVE-2020-10933
suse.com/security/cve/CVE-2021-28965
suse.com/security/cve/CVE-2021-31799
suse.com/security/cve/CVE-2021-31810
suse.com/security/cve/CVE-2021-32066
suse.com/security/cve/CVE-2022-28738
suse.com/security/cve/CVE-2022-28739
suse.com/security/cve/CVE-2023-28755
lists.opensuse.org/archives/list/[email protected]/thread/4CUQQ6QHKQ66CAQFISBEQ34A2SLDQ5JS