Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2021-41819 — cgi

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-565 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Cookie Prefix Spoofing in CGI::Cookie.parse

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.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity high, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: None.
  • Integrity impact: High — total loss, or loss the attacker controls.
  • Availability impact: None.

Weakness class

CVE-2021-41819 is classified as CWE-565: Reliance on Cookies without Validation. Security decisions are based on cookie values that the client can freely modify.

Affected software

CVE-2021-41819 is recorded against 3 packages.

  • cgi (fixed in 0.1.0.1)
  • ruby
  • ruby-min

Timeline and source

Published on 21 January 2022 and last revised on 27 January 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

nvd.nist.gov (Advisory)
hackerone.com (Web)
github.com (Package)
github.com (Web)
lists.fedoraproject.org (Web)
lists.fedoraproject.org (Web)
lists.fedoraproject.org (Web)
lists.fedoraproject.org (Web)
security.gentoo.org (Web)
security.netapp.com (Web)
www.ruby-lang.org (Web)

Other advisories for this package

cgi has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-565: Reliance on Cookies without Validation) in other software:

CVE-2021-41819 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CWE CWE-565
Public Exploit ✅ No
Source OSV
Published 2022-01-21
Updated 2026-08-20
Modified 2025-01-27
Fix URL N/A

Affected Packages

Software From version Fixed in
cgi — 0.1.0.1
ruby — —
ruby-min — —

References

Site Security Check

Is cgi part of your stack?

CVE-2021-41819 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVE
✓