In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
References
| Link | Resource |
|---|---|
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml | Third Party Advisory |
| https://hackerone.com/reports/2890322 | Permissions Required |
| https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html |
Configurations
Configuration 1 (hide)
| AND |
|
History
03 Nov 2025, 22:18
| Type | Values Removed | Values Added |
|---|---|---|
| Summary |
|
|
| First Time |
Ruby-lang ruby
Ruby-lang Ruby-lang cgi |
|
| CPE | cpe:2.3:a:ruby-lang:ruby:3.2.0:*:*:*:*:*:*:* cpe:2.3:a:ruby-lang:ruby:3.1.0:*:*:*:*:*:*:* cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:* |
|
| References |
|
|
| References | () https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml - Third Party Advisory | |
| References | () https://hackerone.com/reports/2890322 - Permissions Required |
04 Mar 2025, 00:15
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2025-03-04 00:15
Updated : 2025-11-03 22:18
NVD link : CVE-2025-27220
Mitre link : CVE-2025-27220
CVE.ORG link : CVE-2025-27220
JSON object : View
Products Affected
ruby-lang
- ruby
- cgi
CWE
CWE-1333
Inefficient Regular Expression Complexity
