4.0Medium

CVE-2025-27220

ruby-lang CGI Published: (1 year ago)

Description

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

Weakness (CWE): CWE-1333

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
ruby-lang CGI < 0.3.5.1, 0.3.6 – < 0.3.7, 0.4.0 – < 0.4.2

References and patches

CPE matches (NVD) (3)

  • 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:*:*