VDB

ALPINE-CVE-2021-41816

ALPINE-CVE-2021-41816 PUBLISHED CVSS 9.800000190734863 CRITICAL

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.

Risk Scores

CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected Products

VendorProductVersions
Alpine:v3.15ruby1.8.7, 0, 2.6.5-r0
Alpine:v3.17ruby*, 0, 3.0.2-r0
Alpine:v3.19ruby0, 2.0.0_p353-r2, 2.0.0_p481-r0
Alpine:v3.12ruby0, 2.7.4-r0, 2.7.3-r0
Alpine:v3.13ruby2.2.3-r1, 1.8.7_p160-r2, 1.8.7_p160-r3
Alpine:v3.21ruby0, 0, 0
Alpine:v3.14ruby2.7.1-r0, 2.7.1-r1, 2.7.1-r3
Alpine:v3.20ruby0, 0, 0
Alpine:v3.18ruby*, 2.0.0, 2.0.0
Alpine:v3.24ruby0
Alpine:v3.22ruby0, 0, 0
Alpine:v3.16ruby2.4.1-r5, 2.4.2-r0, 2.4.2-r1
Alpine:v3.23ruby0, 0, 0

Timeline

  • Feb 6, 2022 CVE Published
  • Apr 30, 2026 Distribution Patch
  • Jun 15, 2026 CVE Updated
Open in Interactive Console →
$ Console Community · 100/wk Open console ›