cbcvebase.
CVE-2021-41816
published 2022-02-06

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…

PriorityP351critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
4.77%
90.8th percentile
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.

Affected

9 ranges
VendorProductVersion rangeFixed in
debianruby2.7< ruby2.7 2.7.4-1+deb11u1 (bullseye)ruby2.7 2.7.4-1+deb11u1 (bullseye)
fedoraprojectfedora
fedoraprojectfedora
ruby-langcgi< 0.3.10.3.1
ruby-langcgi<= 0.2.0
ruby-langcgi<= 0.1.0
ruby-langcgi>= 0 < 0.1.0.10.1.0.1
ruby-langcgi>= 0.2.0 < 0.2.10.2.1
ruby-langcgi>= 0.3.0 < 0.3.10.3.1

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
vendor_ubuntu9.8CRITICAL
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.