CVE-2025-27219

MEDIUM5.8EPSS 0.32%

CGI has Denial of Service (DoS) potential in Cookie.parse

Published: 3/3/2025Modified: 11/19/2025
Also known as:GHSA-gh9q-2xrm-x6qvALPINE-CVE-2025-27219CGA-8xjq-3wv6-cqqg

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.

Affected packages (7)

CVSS scores

SourceVersionSeverityVector
osvCVSS 4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
osvCVSS 3.1MEDIUM5.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L

References (11)