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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 72%
VendorProductVersion
ruby-langcgi
𝑥
< 0.3.1
ruby-langcgi
𝑥
≤ 0.2.0
ruby-langcgi
𝑥
≤ 0.1.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
ruby2.7
bullseye
2.7.4-1+deb11u1
fixed
bullseye (security)
2.7.4-1+deb11u2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
ruby2.3
xenial
not-affected
trusty
ignored
ruby2.5
bionic
not-affected
xenial
ignored
trusty
ignored
ruby2.7
impish
Fixed 2.7.4-1ubuntu3.1
released
hirsute
Fixed 2.7.2-4ubuntu1.3
released
focal
Fixed 2.7.0-5ubuntu1.6
released
xenial
ignored
trusty
ignored
ruby3.0
jammy
Fixed 3.0.2-7ubuntu2
released
xenial
ignored
trusty
ignored