5.8Medium

CVE-2025-27219

ruby-lang CGI Published: (1 year ago)

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

VendorProductVersions
ruby-lang CGI < 0.3.5.1, 0.3.6 – < 0.3.7, 0.4.0 – < 0.4.2

References and patches

CPE matches (NVD) (3)

  • cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* < 0.3.5.1
  • cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* ≥ 0.4.0 < 0.4.2
  • cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:*