Original description
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.
Affected software
- Ruby ≥ 3.0.0 < 3.0.3≥ 2.7.0 < 2.7.5≤ 2.6.8 Fixed in: 3.0.3, 2.7.5 exact match
Details
- Published
- 2022-01-01
- Last modified
- 2025-05-23
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- EPSS (30-day exploit probability)
- 3.15% (percentile 88)
References
- cve.org/CVE-2021-41819
- nvd.nist.gov/vuln/detail/CVE-2021-41819
- hackerone.com/reports/910552
- www.ruby-lang.org/en/news/2021/11/24/cookie-prefix-spoofing-in-cgi-cookie-parse-cve-2021-4...
- security.netapp.com/advisory/ntap-20220121-0003/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U...
- security.gentoo.org/glsa/202401-27
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.