{"id":"CVE-2025-27220","aliases":["GHSA-mhwm-jh88-3gjf"],"url":"https://o3.security/vulnerability/CVE-2025-27220","summary":"CGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElement","details":"In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.","published":"2025-03-03T00:00:00Z","modified":"2026-09-16T11:45:10.206236249Z","cvss":{"score":4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L"},"epss":{"score":0.00745,"percentile":0.5303,"asOf":"2026-09-16"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"cgi","fixedVersion":"0.3.5.1"},{"ecosystem":"RubyGems","name":"cgi","fixedVersion":"0.3.7"},{"ecosystem":"RubyGems","name":"cgi","fixedVersion":"0.4.2"}],"fix":null,"references":[{"type":"WEB","url":"https://hackerone.com/reports/2890322"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27220.json"},{"type":"ADVISORY","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27220"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-16T11:45:10.206236249Z"}}