Advisory

GHSA-4vf4-qmvg-mh7h

Also known as: BIT-ruby-2021-41819, BIT-ruby-min-2021-41819, CVE-2021-41819

Summary

Cookie Prefix Spoofing in CGI::Cookie.parse

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-01-21 23:22 UTC
Modified
2025-01-27 08:58 UTC

Affected packages and fixes

cgi

RubyGems · All systems

Affected

  • introduced 0.3.0, fixed 0.3.1 (ecosystem)

Fixed versions

0.3.1

Fix

The export has no generic command for this ecosystem.

cgi

RubyGems · All systems

Affected

  • introduced 0.2.0, fixed 0.2.1 (ecosystem)

Fixed versions

0.2.1

Fix

The export has no generic command for this ecosystem.

cgi

RubyGems · All systems

Affected

  • introduced 0, fixed 0.1.0.1 (ecosystem)

Fixed versions

0.1.0.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences