Skip to main content
← All vulnerabilities
CVE-2025-27220GHSA-MHWM-JH88-3GJF

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
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.5.1, 0.3.7, 0.4.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • ruby-lang CGI

    fixed in 0.3.5.1; From 0.3.6 · fixed in 0.3.7; From 0.4.0 · fixed in 0.4.2

  • cgiRubyGems

    fixed in 0.3.5.1

  • cgiRubyGems

    From 0.3.6 · fixed in 0.3.7

  • cgiRubyGems

    From 0.4.0 · fixed in 0.4.2

References 2

hackerone.com

GitHub · rubysec/ruby-advisory-db