cve.bz

CVE-2025-27219 ruby-lang cgi

7.5 highEPSS 0.8%Fix available

High (7.5) in ruby-lang cgi. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in cgi 0.3.5.1, 0.3.7, 0.4.2.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-03-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-27219 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-27219?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-27219?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-27219 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
ruby-lang CGIbefore 0.3.5.1
ruby-lang CGIfrom 0.3.6 before 0.3.7
ruby-lang CGIfrom 0.4.0 before 0.4.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gh9q-2xrm-x6qvRubyGemscgi<0.3.5.10.3.5.1
GHSA-gh9q-2xrm-x6qvRubyGemscgi>=0.3.6 <0.3.70.3.7
GHSA-gh9q-2xrm-x6qvRubyGemscgi>=0.4.0 <0.4.20.4.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby2.72.7.4-1+deb11u5DLA-4082-1
Debian12ruby3.13.1.7-1~deb12u2DEBIAN-CVE-2025-27219 DLA-4926-1
Debian13, 14ruby3.33.3.7-2DEBIAN-CVE-2025-27219
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morejrubyno fix listedUBUNTU-CVE-2025-27219
Ubuntu20.04:LTSruby2.72.7.0-5ubuntu1.18UBUNTU-CVE-2025-27219 USN-7418-1
Ubuntu22.04:LTSruby3.03.0.2-7ubuntu2.10UBUNTU-CVE-2025-27219 USN-7418-1
Ubuntu24.04:LTSruby3.23.2.3-1ubuntu0.24.04.5UBUNTU-CVE-2025-27219 USN-7418-1
Ubuntu25.10ruby3.33.3.7-1ubuntu2UBUNTU-CVE-2025-27219
UbuntuPro:16.04:LTSruby2.32.3.1-2~ubuntu16.04.16+esm10UBUNTU-CVE-2025-27219 USN-7442-1
UbuntuPro:18.04:LTSruby2.52.5.1-1ubuntu1.16+esm4UBUNTU-CVE-2025-27219 USN-7442-1
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.1.7-145.module+el8.10.0+23011+f9d508f8RHSA-2025:4063
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.3.8-4.module+el8.10.0+23024+a87ba659RHSA-2025:10217
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21226+b78a28c4RHSA-2025:10217
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21470+43ec8058RHSA-2025:4063
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.1-145.module+el8.10.0+23011+f9d508f8RHSA-2025:4063
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.5-4.module+el8.10.0+23024+a87ba659RHSA-2025:10217
Red Hatenterprise_linux:8::appstreamrubygem-bundler0:2.3.27-145.module+el8.10.0+23011+f9d508f8RHSA-2025:4063
Red Hatenterprise_linux:8::appstreamrubygem-bundler0:2.5.22-4.module+el8.10.0+23024+a87ba659RHSA-2025:10217
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.5.11-145.module+el8.10.0+23011+f9d508f8RHSA-2025:4063
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.7.1-4.module+el8.10.0+23024+a87ba659RHSA-2025:10217
Red Hatenterprise_linux:8::appstreamrubygem-irb0:1.13.1-4.module+el8.10.0+23024+a87ba659RHSA-2025:10217
Red Hatenterprise_linux:8::appstreamrubygem-irb0:1.4.1-145.module+el8.10.0+23011+f9d508f8RHSA-2025:4063
104 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 12 moreruby2.52.5.9-150000.4.41.1SUSE-SU-2025:1369-1
SUSELinux Enterprise Module for Basesystem 15 SP7ruby2.52.5.9-150700.24.3.1SUSE-SU-2025:4264-1
openSUSELeap 15.6ruby2.52.5.9-150000.4.41.1SUSE-SU-2025:1369-1
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.1.7-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.3.8-4.module_el8.10.0+4022+8b66723cALSA-2025:10217
AlmaLinux8rubygem-abrt0.4.0-1.module_el8.9.0+3746+91b8233aALSA-2025:4063
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214ccALSA-2025:10217
AlmaLinux8rubygem-abrt-doc0.4.0-1.module_el8.10.0+3854+02eaa59aALSA-2025:4063
AlmaLinux8rubygem-bigdecimal3.1.1-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux8rubygem-bigdecimal3.1.5-4.module_el8.10.0+4022+8b66723cALSA-2025:10217
AlmaLinux8rubygem-bundler2.3.27-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux8rubygem-bundler2.5.22-4.module_el8.10.0+4022+8b66723cALSA-2025:10217
AlmaLinux8rubygem-io-console0.5.11-145.module_el8.10.0+3984+cf55e3dfALSA-2025:4063
AlmaLinux8rubygem-io-console0.7.1-4.module_el8.10.0+4022+8b66723cALSA-2025:10217
AlmaLinux8rubygem-irb1.13.1-4.module_el8.10.0+4022+8b66723cALSA-2025:10217
46 more for AlmaLinux in the JSON.
Rocky Linux8ruby0:3.1.7-145.module+el8.10.0+1957+16e0d1a2RLSA-2025:4063
Rocky Linux8ruby0:3.3.8-4.module+el8.10.0+2004+fd6e8d72RLSA-2025:10217
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2025:10217 RLSA-2025:4063
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1741+bdb5b6caRLSA-2025:10217 RLSA-2025:4063
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1820+f3fffb92RLSA-2025:10217 RLSA-2025:4063
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1826+b62220b4RLSA-2025:10217 RLSA-2025:4063
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:10217 RLSA-2025:4063
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.5.0+668+665814faRLSA-2025:10217 RLSA-2025:4063
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.9.0+1537+0b2034bdRLSA-2025:10217 RLSA-2025:4063
Rocky Linux8rubygem-mysql20:0.5.3-3.module+el8.10.0+1744+6c504228RLSA-2025:4063
Rocky Linux8rubygem-mysql20:0.5.3-3.module+el8.10.0+1826+b62220b4RLSA-2025:4063
Rocky Linux8rubygem-mysql20:0.5.5-1.module+el8.10.0+1679+61871737RLSA-2025:10217
13 more for Rocky Linux in the JSON.
Alpinev3.19ruby3.2.8-r0ALPINE-CVE-2025-27219
Alpinev3.19ruby-net-imap0.3.9-r0ALPINE-CVE-2025-27219
Alpinev3.20, v3.21ruby3.3.8-r0ALPINE-CVE-2025-27219
Alpinev3.20, v3.21ruby-net-imap0.4.19-r0ALPINE-CVE-2025-27219
Azure Linux2ruby3.1.4-9AZL-57828
Azure Linux3ruby3.3.5-3AZL-57923

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue will cause an excessive resource consumption, potentially resulting in a bad application performance. However, an attacker does have the ability to completely deny service to legitimate users. For this reason, this vulnerability has been rated with a moderate severity.

Red Hat's mitigation

Do not process large cookies or strings with the CGI::Cookie.parse method from the CGI library. Adding a check to verify and limit the length of the cookie or string before processing it will mitigate this vulnerability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10ruby-0:3.3.8-10.el10_0Fixed 2025-05-26RHSA-2025:8131
Red Hat Enterprise Linux 8ruby:3.3-8100020250414172630.489197e6Fixed 2025-07-02RHSA-2025:10217
Red Hat Enterprise Linux 8ruby:3.1-8100020250407112943.489197e6Fixed 2025-04-23RHSA-2025:4063
Red Hat Enterprise Linux 9ruby-0:3.0.7-165.el9_5Fixed 2025-05-06RHSA-2025:4487
Red Hat Enterprise Linux 9ruby:3.1-9050020250404144903.9Fixed 2025-05-06RHSA-2025:4488
Red Hat Enterprise Linux 9ruby:3.3-9050020250415095239.9Fixed 2025-05-06RHSA-2025:4493
Red Hat Enterprise Linux 6rubyOut of support scope
Red Hat Enterprise Linux 7rubyOut of support scope
Red Hat Enterprise Linux 8ruby:2.5/rubyOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-27219.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON