CVE-2025-27220 Details
Description
In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
A Regular Expression Denial-of-Service (ReDoS) vulnerability has been identified in the CGI gem for Ruby, specifically in versions prior to 0.4.2. The issue arises in the Util#escapeElement method, where a vulnerable regular expression can be exploited to cause high CPU consumption.
Users of the affected CGI gem versions should upgrade to version 0.3.5.1, 0.3.7, or 0.4.2 and later.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html | CVE | |
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml | [email protected] | Third Party Advisory |
| https://hackerone.com/reports/2890322 | [email protected] | Permissions Required |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ruby-lang cgi | < 0.3.5.1 >= 0.4.0, < 0.4.2 0.3.6 |
CPE
Remediation
| |
| ruby-lang ruby | 3.1.0 3.2.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Mar 5, 2025 | Initial Analysis | [email protected] |
| Mar 4, 2025 | New CVE Received | [email protected] |