CVE-2025-27219

published 3 Mar 2025 · updated 18 Feb 2026

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.

5.8MediumCVSS 5.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 0.3.5.1, 0.3.7 and 0.4.2.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ruby-lang<0.3.5.1, >=0.3.6 <0.3.7, >=0.4.0 <0.4.20.3.5.1, 0.3.7, 0.4.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-27219 severity on Zeptric[![CVE-2025-27219](https://zeptric.io/badge/cve/CVE-2025-27219.svg)](https://zeptric.io/cve/CVE-2025-27219)