Buffer Overflow Affecting cgi package, versions <0.3.1>=0.2.0, <0.2.1>=0.1.0, <0.1.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
1.1% (85th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-CGI-1930667
  • published25 Nov 2021
  • disclosed25 Nov 2021
  • creditchamal

Introduced: 25 Nov 2021

CVE-2021-41816  (opens in a new tab)
CWE-119  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade cgi to version 0.3.1, 0.2.1, 0.1.1 or higher.

Overview

cgi is a Support for the Common Gateway Interface protocol.

Affected versions of this package are vulnerable to Buffer Overflow when a very large string (> 700 MB) is passed to CGI.escape_html on a platform where long type takes 4 bytes.

CVSS Scores

version 3.1