CVE-2021-41816

Critical

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.

SeverityCritical
CVSS9.8
Exploit probability—
ProductRuby-lang Cgi
PublishedFeb 6, 2022
First seenFeb 6, 2022

How to fix

Affected products

ProductAffected versionsFixed in
ruby-lang cgiv < 0.3.1, v ≤ 0.2.0, v ≤ 0.1.00.3.1
fedoraproject fedora34, 35—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.