CVE-2025-27219
HIGH 7.5CVSS 3.1CGI has Denial of Service (DoS) potential in Cookie.parse
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.
- Published
- 4 Mar 2025
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-400CWE-770
- Also known as
- GHSA-gh9q-2xrm-x6qv
- Sources
- NVDJSONOSV GHSA-gh9q-2xrm-x6qvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ruby-lang | cgicpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* |
< 0.3.5.1 | 0.3.5.1 |
| NVD | ruby-lang | cgicpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* |
>= 0.4.0, < 0.4.2 | 0.4.2 |
| NVD | ruby-lang | cgicpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:* |
= 0.3.6 | |
| OSV | RubyGems | cgi | < 0.3.5.1 | 0.3.5.1 |
| OSV | RubyGems | cgi | >= 0.3.6, < 0.3.7 | 0.3.7 |
| OSV | RubyGems | cgi | >= 0.4.0, < 0.4.2 | 0.4.2 |
References
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27219.yml · Third Party Advisory, WEB
- https://hackerone.com/reports/2936778 · Permissions Required, WEB
- https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-27219 · ADVISORY
- https://github.com/ruby/cgi/pull/52 · WEB
- https://github.com/ruby/cgi/pull/53 · WEB
- https://github.com/ruby/cgi/pull/54 · WEB
- https://github.com/ruby/cgi · PACKAGE
- https://www.cve.org/CVERecord?id=CVE-2025-27219 · WEB
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 4 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Mar 2025)