Ad

CVE-2025-27220

HIGH CVSS 3.1: 7.5 EPSS 0.25%
Updated Nov 03, 2025
Ruby-Lang
Parameter Value
CVSS 7.5 (HIGH)
Affected Versions 0.4.0 — 0.4.2
Fixed In 0.3.5.1
Type CWE-1333 (Inefficient Regular Expression Complexity / ReDoS)
Vendor Ruby-Lang
Public PoC No

In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 5

Configuration From (including) Up to (excluding)
Ruby-Lang Cgi
cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*
0.3.5.1
Ruby-Lang Cgi
cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*
0.4.0 0.4.2
Ruby-Lang Cgi
cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:*
Ruby-Lang Ruby
cpe:2.3:a:ruby-lang:ruby:3.1.0:*:*:*:*:*:*:*
Ruby-Lang Ruby
cpe:2.3:a:ruby-lang:ruby:3.2.0:*:*:*:*:*:*:*