{"cve":"CVE-2025-27220","nvd":{"published":"2025-03-04T00:15:31.693","modified":"2026-06-17T09:03:14.260","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-1333"],"references":["https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml","https://hackerone.com/reports/2890322","https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html"],"products":["ruby-lang:cgi"],"source":"nvd","synced_at":"2026-10-19T21:59:48.811064707+00:00"},"epss":{"cve":"CVE-2025-27220","score":0.0076,"percentile":0.55294,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-mhwm-jh88-3gjf","url":"https://osv.dev/vulnerability/GHSA-mhwm-jh88-3gjf","summary":"CGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElement","modified":"2026-09-10T03:50:56.878678947Z","packages":[{"ecosystem":"RubyGems","name":"cgi","purl":"pkg:gem/cgi","ranges":["<0.3.5.1"],"fixed":["0.3.5.1"]},{"ecosystem":"RubyGems","name":"cgi","purl":"pkg:gem/cgi","ranges":[">=0.3.6 <0.3.7"],"fixed":["0.3.7"]},{"ecosystem":"RubyGems","name":"cgi","purl":"pkg:gem/cgi","ranges":[">=0.4.0 <0.4.2"],"fixed":["0.4.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}