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-27220 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-27220?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-27220?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-27220 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-mhwm-jh88-3gjf | RubyGems | cgi | <0.3.5.1 | 0.3.5.1 |
| GHSA-mhwm-jh88-3gjf | RubyGems | cgi | >=0.3.6 <0.3.7 | 0.3.7 |
| GHSA-mhwm-jh88-3gjf | 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-27220 DLA-4926-1 |
| Debian | 13, 14 | ruby3.3 | 3.3.7-2 | DEBIAN-CVE-2025-27220 |
| Ubuntu | 16.04:LTS, 18.04:LTS, 20.04:LTS and 5 more | jruby | no fix listed | UBUNTU-CVE-2025-27220 |
| Ubuntu | 20.04:LTS | ruby2.7 | 2.7.0-5ubuntu1.18 | UBUNTU-CVE-2025-27220 USN-7418-1 |
| Ubuntu | 22.04:LTS | ruby3.0 | 3.0.2-7ubuntu2.10 | UBUNTU-CVE-2025-27220 USN-7418-1 |
| Ubuntu | 24.04:LTS | ruby3.2 | 3.2.3-1ubuntu0.24.04.5 | UBUNTU-CVE-2025-27220 USN-7418-1 |
| Ubuntu | 25.10 | ruby3.3 | 3.3.7-1ubuntu2 | UBUNTU-CVE-2025-27220 |
| Ubuntu | Pro:16.04:LTS | ruby2.3 | 2.3.1-2~ubuntu16.04.16+esm10 | UBUNTU-CVE-2025-27220 USN-7442-1 |
| Ubuntu | Pro:18.04:LTS | ruby2.5 | 2.5.1-1ubuntu1.16+esm4 | UBUNTU-CVE-2025-27220 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 | 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-bundler | 0:2.3.27-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.5.11-145.module+el8.10.0+23011+f9d508f8 | RHSA-2025:4063 |
| Red Hat | enterprise_linux:8::appstream | rubygem-irb | 0:1.4.1-145.module+el8.10.0+23011+f9d508f8 | RHSA-2025:4063 |
| Red Hat | enterprise_linux:8::appstream | rubygem-json, rubygem-json-debuginfo | 0:2.6.1-145.module+el8.10.0+23011+f9d508f8 | RHSA-2025:4063 |
| Red Hat | enterprise_linux:8::appstream | rubygem-minitest | 0:5.15.0-145.module+el8.10.0+23011+f9d508f8 | RHSA-2025:4063 |
| Red Hat | enterprise_linux:8::appstream | rubygem-mysql2, rubygem-mysql2-doc, rubygem-mysql2-debuginfo and 1 more | 0:0.5.3-3.module+el8.10.0+21470+43ec8058 | RHSA-2025:4063 |
| Red Hat | enterprise_linux:8::appstream | rubygem-pg, rubygem-pg-doc, rubygem-pg-debuginfo and 1 more | 0:1.3.2-1.module+el8.10.0+21470+43ec8058 | RHSA-2025:4063 |
| Red Hat | enterprise_linux:8::appstream | rubygem-power_assert | 0:2.0.1-145.module+el8.10.0+23011+f9d508f8 | RHSA-2025:4063 |
| Red Hat | enterprise_linux:8::appstream | rubygem-psych, rubygem-psych-debuginfo | 0:4.0.4-145.module+el8.10.0+23011+f9d508f8 | RHSA-2025:4063 |
| 45 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 | rubygem-abrt | 0.4.0-1.module_el8.9.0+3746+91b8233a | ALSA-2025:4063 |
| 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-bundler | 2.3.27-145.module_el8.10.0+3984+cf55e3df | ALSA-2025:4063 |
| AlmaLinux | 8 | rubygem-io-console | 0.5.11-145.module_el8.10.0+3984+cf55e3df | ALSA-2025:4063 |
| AlmaLinux | 8 | rubygem-irb | 1.4.1-145.module_el8.10.0+3984+cf55e3df | ALSA-2025:4063 |
| AlmaLinux | 8 | rubygem-json | 2.6.1-145.module_el8.10.0+3984+cf55e3df | ALSA-2025:4063 |
| AlmaLinux | 8 | rubygem-minitest | 5.15.0-145.module_el8.10.0+3984+cf55e3df | ALSA-2025:4063 |
| AlmaLinux | 8 | rubygem-mysql2 | 0.5.3-3.module_el8.9.0+3746+91b8233a | ALSA-2025:4063 |
| AlmaLinux | 8 | rubygem-mysql2, rubygem-mysql2-doc | 0.5.3-3.module_el8.10.0+3854+02eaa59a | ALSA-2025:4063 |
| AlmaLinux | 8 | rubygem-pg | 1.3.2-1.module_el8.9.0+3746+91b8233a | ALSA-2025:4063 |
| 13 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 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1679+61871737 | RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1741+bdb5b6ca | RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1820+f3fffb92 | RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1826+b62220b4 | RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.10.0+1827+16ecb9d2 | RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.5.0+668+665814fa | RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-abrt | 0:0.4.0-1.module+el8.9.0+1537+0b2034bd | 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-pg | 0:1.3.2-1.module+el8.10.0+1741+bdb5b6ca | RLSA-2025:4063 |
| Rocky Linux | 8 | rubygem-pg | 0:1.3.2-1.module+el8.10.0+1826+b62220b4 | RLSA-2025:4063 |
| 4 more for Rocky Linux in the JSON. | ||||
| Azure Linux | 2 | ruby | 3.1.4-9 | AZL-57791 |
| Azure Linux | 3 | ruby | 3.3.5-3 | AZL-57938 |
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; 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.
Red Hat rates this Moderate.
This issue will cause an excessive resource consumption, potentially resulting in a degraded application performance. However, an attacker does have the ability to completely deny service to legitimate users. As such, Red hat has rated the CVSS Availability as LOW instead of HIGH.
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
| Product | Package | State | Advisory |
|---|---|---|---|
| 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 10 | ruby | Not affected | |
| 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 | Will not fix | |
| Red Hat Enterprise Linux 8 | ruby:3.3/ruby | Not affected | |
| Red Hat Enterprise Linux 9 | ruby:3.3/ruby | Will not fix |
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-27220.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.