CVE-2021-41816

CRITICAL

CGI < 0.3.1 - Integer Overflow via Long String in escape_html

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 9.8
EPSS 0.0050
EPSS Percentile 66.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-190
Status published
Products (4)
fedoraproject/fedora 34
fedoraproject/fedora 35
ruby-lang/cgi < 0.3.1
rubygems/cgi 0.3.0 - 0.3.1RubyGems
Published Feb 06, 2022
Tracked Since Feb 18, 2026