CVSS 3.1
7.5 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HHigh (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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Hcgi (RubyGems): fixed in 0.3.5.1, 0.3.7, 0.4.2Explain 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.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| ruby-lang CGI | before 0.3.5.1 |
| ruby-lang CGI | from 0.3.6 before 0.3.7 |
| ruby-lang CGI | from 0.4.0 before 0.4.2 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-gh9q-2xrm-x6qv | RubyGems | cgi | <0.3.5.1 | 0.3.5.1 |
| GHSA-gh9q-2xrm-x6qv | RubyGems | cgi | >=0.3.6 <0.3.7 | 0.3.7 |
| GHSA-gh9q-2xrm-x6qv | RubyGems | cgi | >=0.4.0 <0.4.2 | 0.4.2 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | ruby2.7 | 2.7.4-1+deb11u5 | DLA-4082-1 |
| Debian | 12 | ruby3.1 | 3.1.7-1~deb12u2 | DEBIAN-CVE-2025-27219 DLA-4926-1 |
| Debian | 13, 14 | ruby3.3 | 3.3.7-2 | DEBIAN-CVE-2025-27219 |
| Ubuntu | 16.04:LTS, 18.04:LTS, 20.04:LTS and 5 more | jruby | no fix listed | UBUNTU-CVE-2025-27219 |
| Ubuntu | 20.04:LTS | ruby2.7 | 2.7.0-5ubuntu1.18 | UBUNTU-CVE-2025-27219 USN-7418-1 |
| Ubuntu | 22.04:LTS | ruby3.0 | 3.0.2-7ubuntu2.10 | UBUNTU-CVE-2025-27219 USN-7418-1 |
| Ubuntu | 24.04:LTS | ruby3.2 | 3.2.3-1ubuntu0.24.04.5 | UBUNTU-CVE-2025-27219 USN-7418-1 |
| Ubuntu | 25.10 | ruby3.3 | 3.3.7-1ubuntu2 | UBUNTU-CVE-2025-27219 |
| Ubuntu | Pro:16.04:LTS | ruby2.3 | 2.3.1-2~ubuntu16.04.16+esm10 | UBUNTU-CVE-2025-27219 USN-7442-1 |
| Ubuntu | Pro:18.04:LTS | ruby2.5 | 2.5.1-1ubuntu1.16+esm4 | UBUNTU-CVE-2025-27219 USN-7442-1 |
| Red Hat | enterprise_linux:8::appstream | ruby, ruby-doc, ruby-libs and 7 more | 0:3.1.7-145.module+el8.10.0+23011+f9d508f8 | RHSA-2025:4063 |
| Red Hat | enterprise_linux:8::appstream | ruby, ruby-doc, ruby-libs and 7 more | 0:3.3.8-4.module+el8.10.0+23024+a87ba659 | RHSA-2025:10217 |
| Red Hat | enterprise_linux:8::appstream | rubygem-abrt, rubygem-abrt-doc | 0:0.4.0-1.module+el8.10.0+21226+b78a28c4 | RHSA-2025:10217 |
| Red Hat | enterprise_linux:8::appstream | rubygem-abrt, rubygem-abrt-doc | 0:0.4.0-1.module+el8.10.0+21470+43ec8058 | RHSA-2025:4063 |
| Red Hat | enterprise_linux:8::appstream | rubygem-bigdecimal, rubygem-bigdecimal-debuginfo | 0:3.1.1-145.module+el8.10.0+23011+f9d508f8 | RHSA-2025:4063 |
| Red Hat | enterprise_linux:8::appstream | rubygem-bigdecimal, rubygem-bigdecimal-debuginfo | 0:3.1.5-4.module+el8.10.0+23024+a87ba659 | RHSA-2025:10217 |
| Red Hat | enterprise_linux:8::appstream | rubygem-bundler | 0:2.3.27-145.module+el8.10.0+23011+f9d508f8 | RHSA-2025:4063 |
| Red Hat | enterprise_linux:8::appstream | rubygem-bundler | 0:2.5.22-4.module+el8.10.0+23024+a87ba659 | RHSA-2025:10217 |
| Red Hat | enterprise_linux:8::appstream | rubygem-io-console, rubygem-io-console-debuginfo | 0:0.5.11-145.module+el8.10.0+23011+f9d508f8 | RHSA-2025:4063 |
| Red Hat | enterprise_linux:8::appstream | rubygem-io-console, rubygem-io-console-debuginfo | 0:0.7.1-4.module+el8.10.0+23024+a87ba659 | RHSA-2025:10217 |
| Red Hat | enterprise_linux:8::appstream | rubygem-irb | 0:1.13.1-4.module+el8.10.0+23024+a87ba659 | RHSA-2025:10217 |
| Red Hat | enterprise_linux:8::appstream | rubygem-irb | 0:1.4.1-145.module+el8.10.0+23011+f9d508f8 | RHSA-2025:4063 |
| 104 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 12 more | ruby2.5 | 2.5.9-150000.4.41.1 | SUSE-SU-2025:1369-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP7 | ruby2.5 | 2.5.9-150700.24.3.1 | SUSE-SU-2025:4264-1 |
| openSUSE | Leap 15.6 | ruby2.5 | 2.5.9-150000.4.41.1 | SUSE-SU-2025:1369-1 |
| AlmaLinux | 8 | ruby, ruby-doc, ruby-libs and 3 more | 3.1.7-145.module_el8.10.0+3984+cf55e3df | ALSA-2025:4063 |
| AlmaLinux | 8 | ruby, ruby-doc, ruby-libs and 3 more | 3.3.8-4.module_el8.10.0+4022+8b66723c | ALSA-2025:10217 |
| AlmaLinux | 8 | rubygem-abrt | 0.4.0-1.module_el8.9.0+3746+91b8233a | ALSA-2025:4063 |
| AlmaLinux | 8 | rubygem-abrt, rubygem-abrt-doc | 0.4.0-1.module_el8.10.0+3799+191214cc | ALSA-2025:10217 |
| AlmaLinux | 8 | rubygem-abrt-doc | 0.4.0-1.module_el8.10.0+3854+02eaa59a | ALSA-2025:4063 |
| AlmaLinux | 8 | rubygem-bigdecimal | 3.1.1-145.module_el8.10.0+3984+cf55e3df | ALSA-2025:4063 |
| AlmaLinux | 8 | rubygem-bigdecimal | 3.1.5-4.module_el8.10.0+4022+8b66723c | ALSA-2025:10217 |
| AlmaLinux | 8 | rubygem-bundler | 2.3.27-145.module_el8.10.0+3984+cf55e3df | ALSA-2025:4063 |
| AlmaLinux | 8 | rubygem-bundler | 2.5.22-4.module_el8.10.0+4022+8b66723c | ALSA-2025:10217 |
| AlmaLinux | 8 | rubygem-io-console | 0.5.11-145.module_el8.10.0+3984+cf55e3df | ALSA-2025:4063 |
| AlmaLinux | 8 | rubygem-io-console | 0.7.1-4.module_el8.10.0+4022+8b66723c | ALSA-2025:10217 |
| AlmaLinux | 8 | rubygem-irb | 1.13.1-4.module_el8.10.0+4022+8b66723c | ALSA-2025:10217 |
| 46 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | ruby | 0:3.1.7-145.module+el8.10.0+1957+16e0d1a2 | RLSA-2025:4063 |
| Rocky Linux | 8 | ruby | 0:3.3.8-4.module+el8.10.0+2004+fd6e8d72 | RLSA-2025:10217 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1679+61871737 | RLSA-2025:10217 RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1741+bdb5b6ca | RLSA-2025:10217 RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1820+f3fffb92 | RLSA-2025:10217 RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1826+b62220b4 | RLSA-2025:10217 RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1827+16ecb9d2 | RLSA-2025:10217 RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.5.0+668+665814fa | RLSA-2025:10217 RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.9.0+1537+0b2034bd | RLSA-2025:10217 RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-mysql2 | 0:0.5.3-3.module+el8.10.0+1744+6c504228 | RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-mysql2 | 0:0.5.3-3.module+el8.10.0+1826+b62220b4 | RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-mysql2 | 0:0.5.5-1.module+el8.10.0+1679+61871737 | RLSA-2025:10217 |
| 13 more for Rocky Linux in the JSON. | ||||
| Alpine | v3.19 | ruby | 3.2.8-r0 | ALPINE-CVE-2025-27219 |
| Alpine | v3.19 | ruby-net-imap | 0.3.9-r0 | ALPINE-CVE-2025-27219 |
| Alpine | v3.20, v3.21 | ruby | 3.3.8-r0 | ALPINE-CVE-2025-27219 |
| Alpine | v3.20, v3.21 | ruby-net-imap | 0.4.19-r0 | ALPINE-CVE-2025-27219 |
| Azure Linux | 2 | ruby | 3.1.4-9 | AZL-57828 |
| Azure Linux | 3 | ruby | 3.3.5-3 | AZL-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 rates this Moderate.
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.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | ruby-0:3.3.8-10.el10_0 | Fixed 2025-05-26 | RHSA-2025:8131 |
| Red Hat Enterprise Linux 8 | ruby:3.3-8100020250414172630.489197e6 | Fixed 2025-07-02 | RHSA-2025:10217 |
| Red Hat Enterprise Linux 8 | ruby:3.1-8100020250407112943.489197e6 | Fixed 2025-04-23 | RHSA-2025:4063 |
| Red Hat Enterprise Linux 9 | ruby-0:3.0.7-165.el9_5 | Fixed 2025-05-06 | RHSA-2025:4487 |
| Red Hat Enterprise Linux 9 | ruby:3.1-9050020250404144903.9 | Fixed 2025-05-06 | RHSA-2025:4488 |
| Red Hat Enterprise Linux 9 | ruby:3.3-9050020250415095239.9 | Fixed 2025-05-06 | RHSA-2025:4493 |
| Red Hat Enterprise Linux 6 | ruby | Out of support scope | |
| Red Hat Enterprise Linux 7 | ruby | Out of support scope | |
| Red Hat Enterprise Linux 8 | ruby:2.5/ruby | Out 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.
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).