CVE-2025-27220 describes a Regular Expression Denial of Service (ReDoS) vulnerability in the Util#escapeElement method of the CGI gem for Ruby, affecting versions prior to 0.4.2, and by extension, Ruby itself. This high-severity vulnerability (CVSS 7.5) can be exploited remotely with low attack complexity, potentially leading to a denial of service (A:H) on affected systems. Currently, there is no evidence of active exploitation, public exploit code (Metasploit, Nuclei, ExploitDB), or significant community discussion or media coverage surrounding this CVE.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 0.3.5.1CPE matchmatch criteria | cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* | ||
>= 0.4.0, < 0.4.2CPE matchmatch criteria | cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* | ||
0.3.6CPE matchmatch criteria | cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:* | ||
>= 0, < 0.3.5.1CPE match | cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* | ||
>= 0.3.6, < 0.3.7CPE match | cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.1 Mastodon, and 0.4 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.
In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
Mar 11, 2025CGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElement
Mar 3, 2025CGI: ReDoS in CGI::Util#escapeElement
Mar 3, 2025