cve.bz

CVE-2021-41816

9.8 criticalEPSS 4.9%

Critical (9.8). EPSS 4.9% chance of exploitation in the next 30 days. Fixed in cgi 0.1.0.1, 0.2.1, 0.3.1.

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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
4.9% chance of exploitation in the next 30 days; higher than 92% of CVEs (scores of 2026-10-31)
CWE
CWE-190
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5cqm-crxm-6qpvRubyGemscgi>=0.3.0 <0.3.10.3.1
GHSA-5cqm-crxm-6qpvRubyGemscgi>=0.2.0 <0.2.10.2.1
GHSA-5cqm-crxm-6qpvRubyGemscgi<0.1.0.10.1.0.1

References

Check your stackJSON