Skip to content
CVE PROGRAM SOURCE RECORD4.0 Medium

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.

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

ruby-lang CGI

Default version status: unaffected

  • 0 to < 0.3.5.1affected
  • 0.3.6 to < 0.3.7affected
  • 0.4.0 to < 0.4.2affected

References