Search
Find a vulnerability
Search criteria
Related vulnerabilities
BREW-PGSLICE-CVE-2021-41819 (GHSA-4VF4-QMVG-MH7H)
Vulnerability from osv_homebrew – Published: 2026-08-13 17:26 – Updated: 2026-08-13 17:26 – Source website
VLAI
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
7.5 (High)
References
9 references
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"resource": "cgi",
"resource_purl": "pkg:gem/cgi@0.5.1",
"upstream_fixed_in": "0.3.1"
},
"package": {
"ecosystem": "Homebrew",
"name": "pgslice",
"purl": "pkg:brew/pgslice"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.7.2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "RubyGems",
"key": "pkg:gem/cgi@0.5.1",
"name": "cgi",
"resource": "cgi",
"strategy": "registry",
"subject_version": "0.5.1"
}
]
},
"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.",
"id": "BREW-pgslice-CVE-2021-41819",
"modified": "2026-08-13T17:26:07Z",
"published": "2026-08-13T17:26:07Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-41819"
},
{
"type": "WEB",
"url": "https://hackerone.com/reports/910552"
},
{
"type": "PACKAGE",
"url": "https://github.com/ruby/cgi"
},
{
"type": "WEB",
"url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2021-41819.yml"
},
{
"type": "WEB",
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN"
},
{
"type": "WEB",
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF"
},
{
"type": "WEB",
"url": "https://security.gentoo.org/glsa/202401-27"
},
{
"type": "WEB",
"url": "https://security.netapp.com/advisory/ntap-20220121-0003"
},
{
"type": "WEB",
"url": "https://www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-41819"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
}
],
"summary": "Cookie Prefix Spoofing in CGI::Cookie.parse",
"upstream": [
"GHSA-4vf4-qmvg-mh7h",
"BIT-ruby-2021-41819",
"BIT-ruby-min-2021-41819",
"CVE-2021-41819"
]
}