VDB

CVE-2025-27219

CVE-2025-27219 PUBLISHED CVSS 5.8 MEDIUM

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.

PackageEcosystemFixed in
ruby3.2-rubygem-rakeAmazon Linux13.0.6-183.amzn2023.0.4
ruby-3.1Wolfi3.1.6-r12
ruby3.2Amazon Linux3.2.7-183.amzn2023.0.4
ruby3.2-rubygems-develAmazon Linux3.4.19-183.amzn2023.0.4
ruby3.2-develAmazon Linux3.2.7-183.amzn2023.0.4
ruby3.2-rubygem-power_assertAmazon Linux2.0.3-183.amzn2023.0.4
elasticsearch-8.17Chainguard8.17.10-r13
ruby3.2-rubygem-rbsAmazon Linux2.8.2-183.amzn2023.0.4
ruby3.2-rubygem-io-consoleAmazon Linux0.6.0-183.amzn2023.0.4
ruby3.2-rubygemsAmazon Linux3.4.19-183.amzn2023.0.4
ruby3.2-rubygem-test-unitAmazon Linux3.5.7-183.amzn2023.0.4
ruby-3.2Chainguard3.2.7-r1

1 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
5.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L

Affected products

VendorProductVersions
ruby-langCGI0, 0.3.6, 0.4.0
amazon:2023ruby3.2-rubygem-rake0
wolfiruby-3.10
amazon:2023ruby3.20
amazon:2023ruby3.2-rubygems-devel0
amazon:2023ruby3.2-devel0
amazon:2023ruby3.2-rubygem-power_assert0
chainguardelasticsearch-8.170
amazon:2023ruby3.2-rubygem-rbs0
amazon:2023ruby3.2-rubygem-io-console0
amazon:2023ruby3.2-rubygems0
amazon:2023ruby3.2-rubygem-test-unit0
chainguardruby-3.20
ruby-langcgi0, 0.4.0, 0.3.6
ruby-langcgi
amazon:2023ruby3.2-rubygem-bundler0
chainguardlogstash-8.190
amazon:2023ruby3.2-rubygem-rss0
chainguardruby-3.40
wolfiruby-3.40

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›