GitHub Advisoryadvisory · RubyGems

GHSA-4vf4-qmvg-mh7h Cookie Prefix Spoofing in CGI::Cookie.parse

HIGH Published 2022-01-21 Modified 2023-08-29 Official page ↗
Aliases
CVE-2021-41819
Ecosystem
RubyGems
Packages
cgi
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-565
Reviewed
2022-01-13

Affected packages

• RubyGems cgi: >= 0.3.0, < 0.3.1 → fixed in 0.3.1 • RubyGems cgi: >= 0.2.0, < 0.2.1 → fixed in 0.2.1 • RubyGems cgi: < 0.1.0.1 → fixed in 0.1.0.1

Description

CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names. This also affects the CGI gem prior to versions 0.3.1, 0.2.1, 0.1.1, and 0.1.0.1 for Ruby.

Related

Alias · CVE (1)

  • CVE-2021-41819 CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names. vulnerability

Weakness · CWE (1)

  • CWE-565 Reliance on Cookies without Validation and Integrity Checking weakness

References