CVE Vulnerabilities

CVE-2021-41819

Reliance on Cookies without Validation and Integrity Checking

Published: Jan 01, 2022 | Modified: Jan 24, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:P/A:N
RedHat/V2
RedHat/V3
Ubuntu

CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names. This also affects the CGI gem through 0.3.0 for Ruby.

Weakness

The product relies on the existence or values of cookies when performing security-critical operations, but it does not properly ensure that the setting is valid for the associated user.

Affected Software

Name Vendor Start Version End Version
Cgi Ruby-lang 0.1.0 (including) 0.1.0 (including)
Cgi Ruby-lang 0.2.0 (including) 0.2.0 (including)
Cgi Ruby-lang 0.3.0 (including) 0.3.0 (including)
Ruby Ruby-lang * 2.6.8 (including)
Ruby Ruby-lang 2.7.0 (including) 2.7.5 (excluding)
Ruby Ruby-lang 3.0.0 (including) 3.0.3 (excluding)

Potential Mitigations

References