In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
CVE ID: CVE-2025-27220
CVSS Base Severity: MEDIUM
CVSS Base Score: 4.0
CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
Vendor: ruby-lang
Product: CGI
EPSS Score: 0.13% (probability of being exploited)
EPSS Percentile: 29.77% (scored less or equal to compared to others)
EPSS Date: 2025-04-01 (when was this score calculated)