First published: Mon Mar 03 2025(Updated: )
In the CGI gem before 0.4.2 for Ruby, the CGI::Cookie.parse method in the CGI library contains a potential Denial of Service (DoS) vulnerability. The method does not impose any limit on the length of the raw cookie value it processes. This oversight can lead to excessive resource consumption when parsing extremely large cookies.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
rubygems/cgi | >=0.4.0<0.4.2 | 0.4.2 |
rubygems/cgi | =0.3.6 | 0.3.7 |
rubygems/cgi | <0.3.5.1 | 0.3.5.1 |
Ruby | <0.3.5.1 | |
Ruby | >=0.4.0<0.4.2 | |
Ruby | =0.3.6 | |
<0.3.5.1 | ||
>=0.4.0<0.4.2 | ||
=0.3.6 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-27219 has the potential to cause a Denial of Service (DoS) due to super-linear time complexity when parsing certain cookie strings.
To resolve CVE-2025-27219, upgrade the cgi gem to version 0.4.2 or later.
CVE-2025-27219 affects versions of the cgi gem from 0.4.0 to 0.4.2, as well as earlier versions up to 0.3.6.
CVE-2025-27219 enables a Denial of Service attack by allowing maliciously crafted cookie strings to be processed inefficiently.
Yes, the known patch for CVE-2025-27219 is included in version 0.4.2 of the cgi gem.