Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-2C6AF5C3-4D36-11EC-A539-0800270512F4 (CVE-2021-41816): rubygem-cgi -- buffer overrun in CGI.escape_html

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

FreeBSD: VID-2C6AF5C3-4D36-11EC-A539-0800270512F4 (CVE-2021-41816): rubygem-cgi -- buffer overrun in CGI.escape_html

Severity
8
CVSS
(AV:N/AC:L/Au:N/C:P/I:P/A:P)
Published
11/24/2021
Created
11/08/2022
Added
11/04/2022
Modified
11/04/2022

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.

Solution(s)

  • freebsd-upgrade-package-ruby
  • freebsd-upgrade-package-ruby27
  • freebsd-upgrade-package-ruby30
  • freebsd-upgrade-package-rubygem-cgi

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;