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.
{
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
},
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
},
{
"introduced": "11.0"
},
{
"last_affected": "11.0"
}
],
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"source": "CPE_STRING",
"vendor_product": "debian:debian_linux"
},
{
"extracted_events": [
{
"introduced": "34"
},
{
"last_affected": "34"
},
{
"introduced": "35"
},
{
"last_affected": "35"
}
],
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*"
],
"source": "CPE_STRING",
"vendor_product": "fedoraproject:fedora"
},
{
"extracted_events": [
{
"introduced": "15.2"
},
{
"last_affected": "15.2"
}
],
"cpes": [
"cpe:2.3:o:opensuse:leap:15.2:*:*:*:*:*:*:*"
],
"source": "CPE_STRING",
"vendor_product": "opensuse:leap"
},
{
"extracted_events": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
],
"source": "CPE_STRING",
"vendor_product": "redhat:enterprise_linux"
},
{
"extracted_events": [
{
"introduced": "11.0-sp1"
},
{
"last_affected": "11.0-sp1"
},
{
"introduced": "12.0"
},
{
"last_affected": "12.0"
},
{
"introduced": "15.0"
},
{
"last_affected": "15.0"
}
],
"cpes": [
"cpe:2.3:o:suse:linux_enterprise:11.0:sp1:*:*:*:*:*:*",
"cpe:2.3:o:suse:linux_enterprise:12.0:*:*:*:*:*:*:*",
"cpe:2.3:o:suse:linux_enterprise:15.0:*:*:*:*:*:*:*"
],
"source": "CPE_STRING",
"vendor_product": "suse:linux_enterprise"
}
]
}{
"cpe": [
"cpe:2.3:a:ruby-lang:cgi:0.1.0:*:*:*:*:ruby:*:*",
"cpe:2.3:a:ruby-lang:cgi:0.2.0:*:*:*:*:ruby:*:*",
"cpe:2.3:a:ruby-lang:cgi:0.3.0:*:*:*:*:ruby:*:*"
],
"extracted_events": [
{
"introduced": "0.1.0"
},
{
"last_affected": "0.1.0"
},
{
"introduced": "0.2.0"
},
{
"last_affected": "0.2.0"
},
{
"introduced": "0.3.0"
},
{
"last_affected": "0.3.0"
}
],
"source": "CPE_STRING"
}{
"cpe": "cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "2.6.8"
},
{
"introduced": "2.7.0"
},
{
"fixed": "2.7.5"
},
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.3"
}
],
"source": "CPE_RANGE"
}"2026-07-09T01:25:29Z"
[
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"221608888545214764521643589590002473795",
"62837079863855754692353823286478885059",
"151633818343694841750591657495653307518",
"112628295566100827065348454738811594068"
]
},
"signature_version": "v1",
"source": "https://github.com/ruby/ruby/commit/3fb7d2cadc18472ec107b14234933b017a33c14d",
"id": "CVE-2021-41819-11445fd0",
"target": {
"file": "ext/cgi/escape/escape.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 658.0,
"function_hash": "185553476159107413192269642060714357735"
},
"signature_version": "v1",
"source": "https://github.com/ruby/ruby/commit/f69aeb83146be640995753667fdd6c6f157527f5",
"id": "CVE-2021-41819-2f76299c",
"target": {
"function": "optimized_escape_html",
"file": "ext/cgi/escape/escape.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"221608888545214764521643589590002473795",
"62837079863855754692353823286478885059",
"151633818343694841750591657495653307518",
"112628295566100827065348454738811594068"
]
},
"signature_version": "v1",
"source": "https://github.com/ruby/ruby/commit/f69aeb83146be640995753667fdd6c6f157527f5",
"id": "CVE-2021-41819-799f160e",
"target": {
"file": "ext/cgi/escape/escape.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 658.0,
"function_hash": "185553476159107413192269642060714357735"
},
"signature_version": "v1",
"source": "https://github.com/ruby/ruby/commit/3fb7d2cadc18472ec107b14234933b017a33c14d",
"id": "CVE-2021-41819-dfee3243",
"target": {
"function": "optimized_escape_html",
"file": "ext/cgi/escape/escape.c"
}
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-41819.json"