Buffer Overflow in Ruby's CGI Module Affecting Multiple Versions
CVE-2021-41816
9.8CRITICAL
What is CVE-2021-41816?
The CGI.escape_html function in Ruby versions prior to 2.7.5 and 3.x versions before 3.0.3 is susceptible to an integer overflow that can lead to a buffer overflow when processing long strings. This vulnerability also impacts the CGI gem prior to version 0.3.1. The issue arises on platforms where size_t and long types vary in size, such as Windows. Exploiting this vulnerability could allow an attacker to run arbitrary code or cause a denial of service.