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.
2022-02-06T21:15:07.887
2024-11-21T06:26:48.520
Modified
CVSSv3.1: 9.8 (CRITICAL)
AV:N/AC:L/Au:N/C:P/I:P/A:P
10.0
6.4
Type | Vendor | Product | Version/Range | Vulnerable? |
---|---|---|---|---|
Application | ruby-lang | cgi | < 0.3.1 | Yes |
Application | ruby-lang | cgi | ≤ 0.2.0 | Yes |
Application | ruby-lang | ruby | < 3.0.3 | No |
Application | ruby-lang | cgi | ≤ 0.1.0 | Yes |
Application | ruby-lang | ruby | < 2.7.5 | No |
Operating System | fedoraproject | fedora | 34 | Yes |
Operating System | fedoraproject | fedora | 35 | Yes |