{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-27220","published":"2025-03-04T00:15:31.693000Z","last_modified":"2026-06-17T09:03:14.260000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-1333"],"cpes":[{"criteria":"cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*","part":"a","vendor":"ruby-lang","product":"cgi","version_end_excluding":"0.3.5.1"},{"criteria":"cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*","part":"a","vendor":"ruby-lang","product":"cgi","version_start_including":"0.4.0","version_end_excluding":"0.4.2"},{"criteria":"cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:*","part":"a","vendor":"ruby-lang","product":"cgi","version":"0.3.6"}],"cpes_truncated":false,"vendors":["ruby-lang"],"products":["ruby-lang/cgi"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-mhwm-jh88-3gjf","ecosystem":"RubyGems","name":"cgi","purl":"pkg:gem/cgi","ranges":[{"introduced":"0","fixed":"0.3.5.1"}],"versions":["0.1.0","0.1.0.1","0.1.0.2","0.1.1","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.3.5"],"versions_truncated":false},{"advisory":"GHSA-mhwm-jh88-3gjf","ecosystem":"RubyGems","name":"cgi","purl":"pkg:gem/cgi","ranges":[{"introduced":"0.3.6","fixed":"0.3.7"}],"versions":["0.3.6"],"versions_truncated":false},{"advisory":"GHSA-mhwm-jh88-3gjf","ecosystem":"RubyGems","name":"cgi","purl":"pkg:gem/cgi","ranges":[{"introduced":"0.4.0","fixed":"0.4.2"}],"versions":["0.4.0","0.4.1","0.4.2.beta1","0.4.2.beta2"],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2025-27220/","html_en":"/en/cve/CVE-2025-27220/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-27220","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-27220"},"untrusted":{"vendor_name":"Ruby-lang","product_name":"Cgi","desc_en":"In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.","affected":[{"untrusted_vendor":"ruby-lang","untrusted_product":"CGI","versions":[]}],"references":[{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml","tags":["Third Party Advisory"]},{"url":"https://hackerone.com/reports/2890322","tags":["Permissions Required"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html","tags":[]}]}}