CVE-2025-27219
CGI has Denial of Service (DoS) potential in Cookie.parse
Reported by mitre · Published March 3, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ruby3.2-rubygem-rake | Amazon Linux | 13.0.6-183.amzn2023.0.4 |
| ruby-3.1 | Wolfi | 3.1.6-r12 |
| ruby3.2 | Amazon Linux | 3.2.7-183.amzn2023.0.4 |
| ruby3.2-rubygems-devel | Amazon Linux | 3.4.19-183.amzn2023.0.4 |
| ruby3.2-devel | Amazon Linux | 3.2.7-183.amzn2023.0.4 |
| ruby3.2-rubygem-power_assert | Amazon Linux | 2.0.3-183.amzn2023.0.4 |
| elasticsearch-8.17 | Chainguard | 8.17.10-r13 |
| ruby3.2-rubygem-rbs | Amazon Linux | 2.8.2-183.amzn2023.0.4 |
| ruby3.2-rubygem-io-console | Amazon Linux | 0.6.0-183.amzn2023.0.4 |
| ruby3.2-rubygems | Amazon Linux | 3.4.19-183.amzn2023.0.4 |
| ruby3.2-rubygem-test-unit | Amazon Linux | 3.5.7-183.amzn2023.0.4 |
| ruby-3.2 | Chainguard | 3.2.7-r1 |
1 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | CGI | 0, 0.3.6, 0.4.0 |
| amazon:2023 | ruby3.2-rubygem-rake | 0 |
| wolfi | ruby-3.1 | 0 |
| amazon:2023 | ruby3.2 | 0 |
| amazon:2023 | ruby3.2-rubygems-devel | 0 |
| amazon:2023 | ruby3.2-devel | 0 |
| amazon:2023 | ruby3.2-rubygem-power_assert | 0 |
| chainguard | elasticsearch-8.17 | 0 |
| amazon:2023 | ruby3.2-rubygem-rbs | 0 |
| amazon:2023 | ruby3.2-rubygem-io-console | 0 |
| amazon:2023 | ruby3.2-rubygems | 0 |
| amazon:2023 | ruby3.2-rubygem-test-unit | 0 |
| chainguard | ruby-3.2 | 0 |
| ruby-lang | cgi | 0, 0.4.0, 0.3.6 |
| ruby-lang | cgi | |
| amazon:2023 | ruby3.2-rubygem-bundler | 0 |
| chainguard | logstash-8.19 | 0 |
| amazon:2023 | ruby3.2-rubygem-rss | 0 |
| chainguard | ruby-3.4 | 0 |
| wolfi | ruby-3.4 | 0 |
…and 22 more
Timeline
- Mar 3, 2025 CVE Published
- Mar 4, 2025 EPSS Score (30 in total, the first dated here)
- Apr 27, 2025 PoC Published
- Mar 17, 2026 Security Advisory (10 in total, the first dated here)
- Jun 15, 2026 Coalition ESS Score
- Oct 20, 2026 Distribution Patch (9 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-27219
vulnetix vdb fixes CVE-2025-27219
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-27219/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-27219 advisory
- https://github.com/advisories/GHSA-gh9q-2xrm-x6qv advisory
- https://github.com/ruby/cgi/pull/52 patch
- https://github.com/ruby/cgi/pull/53 patch
- https://github.com/ruby/cgi/pull/54 patch
- https://github.com/ruby/cgi url
- https://www.cve.org/CVERecord?id=CVE-2025-27219 url
- https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html url