Vulnerability Monitor

The vendors, products, and vulnerabilities you care about

CVE-2021-41816


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.


Published

2022-02-06T21:15:07.887

Last Modified

2024-11-21T06:26:48.520

Status

Modified

Source

[email protected]

Severity

CVSSv3.1: 9.8 (CRITICAL)

CVSSv2 Vector

AV:N/AC:L/Au:N/C:P/I:P/A:P

  • Access Vector: NETWORK
  • Access Complexity: LOW
  • Authentication: NONE
  • Confidentiality Impact: PARTIAL
  • Integrity Impact: PARTIAL
  • Availability Impact: PARTIAL
Exploitability Score

10.0

Impact Score

6.4

Weaknesses
  • Type: Primary
    CWE-190

Affected Vendors & Products
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

References