CVE-2021-41816

ruby: buffer overflow in CGI.escape_html

Published Feb 6, 2022 CVSS 3.1 · 9.8 Critical EPSS 4.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-5067-1 ruby2.7 security update
Github GHSA Github GHSA GHSA-5cqm-crxm-6qpv Buffer overrun in CGI.escape_html
Ubuntu USN Ubuntu USN USN-5235-1 Ruby vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.01232}

epss

{'score': 0.01393}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 3:22 AM
Reserved
Sep 29, 2021, 12:00 AM
Status
Modified
Published
Feb 6, 2022, 9:15 PM
Modified
Jun 17, 2026, 4:08 AM
Severity
Moderate
Public date
Nov 24, 2021, 12:00 AM