4 CVE-2025-27220

 

In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
https://nvd.nist.gov/vuln/detail/CVE-2025-27220

Categories

CWE-1333 : Inefficient Regular Expression Complexity
Some regular expression engines have a feature called "backtracking". If the token cannot match, the engine "backtracks" to a position that may result in a different token that can match.

References


 

CPE

cpe start end
Configuration 1
AND
   cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* < 0.3.5.1
   cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:* >= 0.4.0 < 0.4.2
   cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:*
  Running on/with
  cpe:2.3:a:ruby-lang:ruby:3.1.0:*:*:*:*:*:*:*
  cpe:2.3:a:ruby-lang:ruby:3.2.0:*:*:*:*:*:*:*


REMEDIATION




EXPLOITS


Exploit-db.com

id description date
No known exploits

POC Github

Url
No known exploits

Other Nist (github, ...)

Url
No known exploits


CAPEC


Common Attack Pattern Enumerations and Classifications

id description severity
492 Regular Expression Exponential Blowup