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.
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
| Link | Tags |
|---|---|
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml | Third Party Advisory |
| https://hackerone.com/reports/2890322 | Permissions Required |
| https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html |
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.
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.