CRITICAL · 9.8

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 nu...

Vulnerability Description

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.

CVSS Score

9.8

CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH

Affected Products

VendorProductVersions
Ruby-LangCgi< 0.3.1
Ruby-LangRuby>= 3.0.0, < 3.0.3
FedoraprojectFedora34

Related Weaknesses (CWE)

References

FAQ

What is CVE-2021-41816?

CVE-2021-41816 is a vulnerability with a CVSS score of 9.8 (CRITICAL). 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 nu...

How severe is CVE-2021-41816?

CVE-2021-41816 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.

Is there a patch for CVE-2021-41816?

Check the references section above for vendor advisories and patch information. Affected products include: Ruby-Lang Cgi, Ruby-Lang Ruby, Fedoraproject Fedora.