5.8Medium
CVE-2025-27219
Description
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.
Weakness (CWE):
CWE-770
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
References and patches
CPE matches (NVD) (3)
cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*< 0.3.5.1cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*≥ 0.4.0 < 0.4.2cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:*