← Back

CVE-2021-41816

nvd nist
Published: Feb 6, 2022Modified: Jun 17, 2026

JSON object

Loading...
9.8
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Exploitability: 3.9 / Impact: 5.9
Source: NVD

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.

Affected (5)

1 product
Cgi
1 product
Fedora
Configuration A
1 vulnerable
Vulnerable SoftwareAffected Versions
Before 0.3.1
Configuration B
1 vulnerable · 1 platform
Vulnerable SoftwareAffected Versions
Up to 0.2.0
Running on/withPlatform Versions
Ruby Lang
Ruby
From 3.0.0 to 3.0.3
Configuration C
1 vulnerable · 1 platform
Vulnerable SoftwareAffected Versions
Up to 0.1.0
Running on/withPlatform Versions
Ruby Lang
Ruby
From 2.7.0 to 2.7.5
Configuration D
2 vulnerable
Vulnerable SoftwareAffected Versions
Fedoraproject
Version 34
Version 35

References (14)

Source: cve@mitre.org
Permissions RequiredThird Party Advisory
Source: cve@mitre.org
Third Party Advisory
Source: cve@mitre.org
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
Permissions RequiredThird Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
ExploitVendor Advisory

Timeline

No history available yet.