← Vulnerability feed

Vulnerability record · CVE-2025-27220 · published 4 March 2025

CVE-2025-27220: Ruby-lang cgi inefficient regular expression (redos) vulnerability

Ruby Lang · Cgi

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

7.5 CVSS 3.1 High EPSS 0.76% · top 46.5% CWE-1333 · Inefficient regular expression (ReDoS)
7.5CVSS 3.1 base score
0.76%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
3References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2025-27220 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

Source: NIST National Vulnerability Database (record CVE-2025-27220), CISA KEV, FIRST EPSS (scores of 2026-09-29). This page is refreshed as NVD updates the record.