CVE-2021-41816

Source
https://cve.org/CVERecord?id=CVE-2021-41816
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41816.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-41816
Aliases
Downstream
ALPINE (1)
BELL (1)
CLEANSTART (1)
DEBIAN (1)
MGASA (1)
openSUSE (7)
RHSA (2)
UBUNTU (1)
Related
Published
2022-02-06T21:15:07Z
Modified
2026-09-16T03:45:06Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
                "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "34"
                },
                {
                    "last_affected":  "34"
                },
                {
                    "introduced":  "35"
                },
                {
                    "last_affected":  "35"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "fedoraproject:fedora"
        }
    ]
}
References

Affected packages

Git / github.com/ruby/cgi

Affected ranges

Type
GIT
Repo
https://github.com/ruby/cgi
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Last Affected
Last Affected
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "0.3.1"
        },
        {
            "last_affected":  "0.2.0"
        },
        {
            "last_affected":  "0.1.0"
        }
    ],
    "source":  "CPE_RANGE"
}

Affected versions

v0.*
v0.1.0
v0.2.0
v0.3.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41816.json"