{"id":"CVE-2025-27220","published":"2025-03-03T00:00:00Z","modified":"2025-11-03T21:13:25Z","title":"In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the…","vendor":"ruby-lang","product":"CGI","tier":"tail","description":{"text":"In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.","provenance":"source","from":"CVE.org"},"cvss":{"score":4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01339,"percentile":0.71392,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://hackerone.com/reports/2890322","tags":[]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html","tags":[]}],"priority":{"score":17.1,"factors":[{"name":"EPSS percentile","points":14.28},{"name":"CVSS severity","points":2.8}]},"vendorSlug":"ruby-lang","affectedVersions":[{"vendor":"ruby-lang","product":"CGI","versions":["< 0.3.5.1",">= 0.3.6, < 0.3.7",">= 0.4.0, < 0.4.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-04T16:39:36.614961Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"cgi","vulnerableRanges":["<0.3.5.1",">=0.3.6, <0.3.7",">=0.4.0, <0.4.2"],"patched":["0.3.5.1","0.3.7","0.4.2"],"from":["GHSA-mhwm-jh88-3gjf"],"provenance":"source"}],"summary":{"text":"The flaw is a Regular Expression Denial of Service (ReDoS) vulnerability in the Util#escapeElement method of the CGI gem for Ruby, affecting versions before 0.4.2. An attacker who can send crafted input to the affected method can cause excessive regex processing that degrades availability, and the attack requires network access with no authentication or user interaction, though exploitation is noted as having high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:20Z"},"euvd":{"id":"EUVD-2025-5509","exploited":false,"provenance":"source"}}