
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-41816 is a buffer overflow vulnerability discovered in Ruby's CGI.escapehtml function. The vulnerability affects Ruby versions before 2.7.5 and 3.x before 3.0.3, as well as the CGI gem before version 0.3.1. The issue occurs when processing long strings (>700MB) on platforms where sizet and long have different numbers of bytes, particularly on Windows systems (Ruby Lang).
The vulnerability stems from an integer overflow condition that leads to a buffer overflow in the CGI.escape_html function. The issue specifically manifests when handling very large strings exceeding 700MB on platforms where the long type takes 4 bytes, typically on Windows systems. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (Critical) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating high severity across confidentiality, integrity, and availability impacts (Ubuntu, NetApp).
Successful exploitation of this vulnerability could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). The critical CVSS score of 9.8 indicates severe potential impacts across all security aspects - confidentiality, integrity, and availability (NetApp).
Users are strongly recommended to update to Ruby versions 2.7.5 or 3.0.3 or later. For those using the CGI gem directly, updating to version 0.3.1 or later is recommended. This can be done using the command 'gem update cgi'. For projects using bundler, adding 'gem "cgi", ">= 0.3.1"' to the Gemfile is advised. The vulnerability only affects Ruby 2.7 and later versions; Ruby 2.6 and earlier versions are not vulnerable (Ruby Lang).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."