Skip to main content
← All vulnerabilities
CVE-2025-27219GHSA-GH9Q-2XRM-X6QV

In the CGI gem before 0.4.2 for Ruby, the CGI::Cookie.parse method in the CGI library contains a potential Denial of Service (DoS) vulnerabi

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, the CGI::Cookie.parse method in the CGI library contains a potential Denial of Service (DoS) vulnerability. The method does not impose any limit on the length of the raw cookie value it processes. This oversight can lead to excessive resource consumption when parsing extremely large cookies.

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