CVE-2025-27219

CGI: Denial of Service in CGI::Cookie.parse

Published Mar 3, 2025 CVSS 3.1 · 5.8 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4082-1 ruby2.7 security update
EUVD EUVD EUVD-2025-5556 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.
Github GHSA Github GHSA GHSA-gh9q-2xrm-x6qv CGI has Denial of Service (DoS) potential in Cookie.parse
Ubuntu USN Ubuntu USN USN-7418-1 Ruby vulnerabilities
Ubuntu USN Ubuntu USN USN-7442-1 Ruby vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10.0
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:9
Type Values Removed Values Added
First Time appeared Redhat
Redhat enterprise Linux
CPEs cpe:/a:redhat:enterprise_linux:8
Vendors & Products Redhat
Redhat enterprise Linux
Type Values Removed Values Added
First Time appeared Ruby-lang
Ruby-lang cgi
CPEs cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*
cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:*
Vendors & Products Ruby-lang
Ruby-lang cgi
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title CGI: Denial of Service in CGI::Cookie.parse
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
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.
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 5.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 3, 2025, 9:13 PM
Reserved
Feb 20, 2025, 12:00 AM
Status
Modified
Published
Mar 4, 2025, 12:15 AM
Modified
Jun 17, 2026, 9:03 AM
Severity
Moderate
Public date
Mar 3, 2025, 12:00 AM