CVE-2021-41816

Summary

CVECVE-2021-41816
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-02-06 21:15:00 UTC
Updated2024-01-24 05:15:00 UTC
DescriptionCGI.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 And Classification

Problem Types: CWE-190

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 34 All All All
Operating System Fedoraproject Fedora 35 All All All
Application Ruby-lang Cgi All All All All
Application Ruby-lang Cgi All All All All
Application Ruby-lang Cgi All All All All
Application Ruby-lang Ruby All All All All

References

ReferenceSourceLinkTags
[SECURITY] Fedora 35 Update: ruby-3.0.4-153.fc35 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
CVE-2021-41816 Ruby Vulnerability in NetApp Products | NetApp Product Security CONFIRM security.netapp.com
[SECURITY] Fedora 35 Update: ruby-3.0.4-153.fc35 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 34 Update: ruby-3.0.4-153.fc34 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
Ruby: Multiple vulnerabilities (GLSA 202401-27) — Gentoo security security.gentoo.org
CVE-2021-41816: Buffer Overrun in CGI.escape_html CONFIRM www.ruby-lang.org
CVE-2021-41816 MISC security-tracker.debian.org
HackerOne MISC hackerone.com
[SECURITY] Fedora 34 Update: ruby-3.0.4-153.fc34 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 179050 Debian Security Update for ruby2.7 (DSA 5067-1)
  • 198635 Ubuntu Security Notification for Ruby Vulnerabilities (USN-5235-1)
  • 240720 Red Hat Update for rh-ruby27-ruby security (RHSA-2022:6856)
  • 240723 Red Hat Update for rh-ruby30-ruby security (RHSA-2022:6855)
  • 282660 Fedora Security Update for ruby (FEDORA-2022-82a9edac27)
  • 282661 Fedora Security Update for ruby (FEDORA-2022-8cf0124add)
  • 356181 Amazon Linux Security Advisory for ruby : ALASRUBY3.0-2023-003
  • 356463 Amazon Linux Security Advisory for ruby : ALAS2RUBY3.0-2023-003
  • 500617 Alpine Linux Security Update for ruby
  • 502024 Alpine Linux Security Update for ruby
  • 504377 Alpine Linux Security Update for ruby
  • 690621 Free Berkeley Software Distribution (FreeBSD) Security Update for rubygem-cgi (2c6af5c3-4d36-11ec-a539-0800270512f4)
  • 710844 Gentoo Linux Ruby Multiple Vulnerabilities (GLSA 202401-27)
  • 904903 Common Base Linux Mariner (CBL-Mariner) Security Update for ruby (12423)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report