Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2021-41816 Details

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-190Integer Overflow or Wraparound[email protected]

Affected Products

ProductVersions
ruby-lang cgi
< 0.3.1
<= 0.2.0
<= 0.1.0

CPE

  • cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*

Remediation

  • No remediation found in references.
ruby-lang ruby
>= 3.0.0, < 3.0.3
>= 2.7.0, < 2.7.5

CPE

  • cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
fedoraproject fedora
34
35

CPE

  • cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

10 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2021-41816
NVD Published Date:
Feb 6, 2022
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]