Improper Input Validation Affecting cgi package, versions <0.1.0.2>=0.2.1, <0.2.2>=0.3.3, <0.3.5


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
0.65% (80th 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 Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-CGI-3136296
  • published20 Nov 2022
  • disclosed20 Nov 2022
  • creditHiroshi Tokumaru

Introduced: 20 Nov 2022

CVE-2021-33621  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade cgi to version 0.1.0.2, 0.2.2, 0.3.5 or higher.

Overview

cgi is a Support for the Common Gateway Interface protocol.

Affected versions of this package are vulnerable to Improper Input Validation due to improper validation of CGI::Cookie content, which allows an attacker to inject invalid attributes in the Set-Cookie header and insert a newline character to split the header, and inject malicious content to deceive clients.

References

CVSS Scores

version 3.1