CVE-2021-41816

CRITICALCVSS 9.8/10EPSS 4.77%

Last modified

CVE-2021-41816 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. EPSS estimates a 4.77% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
9.8/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
4.77%

90.8th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
Ruby-LangCgi< 0.3.1
Ruby-LangCgi<= 0.2.0
Ruby-LangCgi<= 0.1.0
FedoraprojectFedora34
FedoraprojectFedora35

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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.
How severe is CVE-2021-41816?
CVE-2021-41816 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 4.77% probability of exploitation in the next 30 days.
How do I fix CVE-2021-41816?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-41816?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST