{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-27220","id":"CVE-2025-27220","title":"CGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElement","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.","descriptionLong":"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:00.000Z","updated":"2026-10-28T02:31:13.567875861Z","reserved":"2025-02-20T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L","rating":"medium","source":"mitre"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L","rating":"medium","source":"mitre"},{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L","rating":"medium","source":"mitre.org"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["ruby-lang CGI"],"affectedProducts":[{"vendor":"ruby-lang","product":"CGI","defaultStatus":"unaffected","versions":[{"lessThan":"0.3.5.1","status":"affected","version":"0","versionType":"custom"},{"lessThan":"0.3.7","status":"affected","version":"0.3.6","versionType":"custom"},{"lessThan":"0.4.2","status":"affected","version":"0.4.0","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"cgi","purl":"pkg:gem/cgi","ranges":["<0.3.5.1",">=0.3.6 <0.3.7",">=0.4.0 <0.4.2"],"fixed":["0.3.5.1","0.3.7","0.4.2"],"advisory":"GHSA-mhwm-jh88-3gjf"}],"cwes":["CWE-1333"],"aliases":["GHSA-mhwm-jh88-3gjf"],"references":[{"url":"https://hackerone.com/reports/2890322","tags":["Permissions Required","web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml","tags":["Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27220.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27220","tags":["advisory"]},{"url":"https://github.com/ruby/cgi/pull/52","tags":["web"]},{"url":"https://github.com/ruby/cgi/pull/53","tags":["web"]},{"url":"https://github.com/ruby/cgi/pull/54","tags":["web"]},{"url":"https://github.com/ruby/cgi","tags":["package"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-27220","tags":["web"]},{"url":"https://www.ruby-lang.org/en/news/2025/02/26/security-advisories","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0076,"epssPercentile":0.56061,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-27220","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27220","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-27220","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mhwm-jh88-3gjf","ok":true,"note":"GHSA-mhwm-jh88-3gjf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-27220","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}