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—
Product
Ruby-lang Cgi
PublishedFeb 6, 2022
First seenFeb 6, 2022
How to fix
Update
- ruby-lang cgi0.3.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ruby-lang cgi | v < 0.3.1, v ≤ 0.2.0, v ≤ 0.1.0 | 0.3.1 |
| fedoraproject fedora | 34, 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.