Security mailing lists by PureSourceCode

CVE-2025-27219

HIGH 7.5CVSS 3.1

CGI has Denial of Service (DoS) potential in Cookie.parse

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.

Published
4 Mar 2025
Last modified
10 Sep 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-400CWE-770
Also known as
GHSA-gh9q-2xrm-x6qv
Sources
NVDJSONOSV GHSA-gh9q-2xrm-x6qvJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD cve@mitre.org (Secondary) CVSS 3.1 MEDIUM 5.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L
OSV GitHub CVSS 3.1 MEDIUM 5.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD ruby-lang cgi
cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*
< 0.3.5.1 0.3.5.1
NVD ruby-lang cgi
cpe:2.3:a:ruby-lang:cgi:*:*:*:*:*:ruby:*:*
>= 0.4.0, < 0.4.2 0.4.2
NVD ruby-lang cgi
cpe:2.3:a:ruby-lang:cgi:0.3.6:*:*:*:*:ruby:*:*
= 0.3.6
OSV RubyGems cgi < 0.3.5.1 0.3.5.1
OSV RubyGems cgi >= 0.3.6, < 0.3.7 0.3.7
OSV RubyGems cgi >= 0.4.0, < 0.4.2 0.4.2

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 4 Mar 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Mar 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.