CVE-2025-27220

MEDIUM4.0EPSS 0.25%

CGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElement

Published: 3/3/2025Modified: 4/28/2026

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 packages (4)

CVSS scores

SourceVersionSeverityVector
osvCVSS 4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
osvCVSS 3.1MEDIUM4.0CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L

References (11)