Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-41816

9.8 · CRITICAL
Published Feb 6, 2022 ruby-lang CWE-190 EPSS 4.77% (91th pctl)

Overview

CVE-2021-41816 is a critical-severity vulnerability affecting ruby-lang cgi. It was published on February 6, 2022 and has a CVSS 3.1 base score of 9.8 (CRITICAL).

This vulnerability has a CVSS 3.1 base score of 9.8, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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

Check the references section for vendor advisories and patches from ruby-lang. Update cgi to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
ruby-lang cgi >= 0, < 0.3.1 Affected
ruby-lang ruby >= 3.0.0, < 3.0.3 Affected

Frequently Asked Questions

What is CVE-2021-41816?

CVE-2021-41816 is a critical-severity vulnerability affecting ruby-lang cgi. It was published on February 6, 2022 and has a CVSS 3.1 base score of 9.8 (CRITICAL).

How severe is CVE-2021-41816?

This vulnerability has a CVSS 3.1 base score of 9.8, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2021-41816?

Check the references section for vendor advisories and patches from ruby-lang. Update cgi to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-41816?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-41816 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.