Improper Authentication Affecting cgi package, versions >=0.3.0, <0.3.1 >=0.2.0, <0.2.1 <0.1.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.75% (82nd 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 ID SNYK-RUBY-CGI-2359027
  • published 23 Jan 2022
  • disclosed 21 Jan 2022
  • credit ooooooo_q

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 Improper Authentication. CGI::Cookie.parse mishandles security prefixes in cookie names by applying URL decoding to cookie names. An attacker could exploit this vulnerability to spoof security prefixes in cookie names, which may be able to trick a vulnerable application.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
7.5 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    High
  • Availability (A)
    None
Expand this section

NVD

7.5 high
Expand this section

SUSE

6.5 medium
Expand this section

Red Hat

7.5 high