CVE-2025-27219

Name
CVE-2025-27219
Description
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.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
cve@mitre.org https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27219.yml
cve@mitre.org https://hackerone.com/reports/2936778

Match rules

CPE URI Source package Min version Max version
cgi >= 0 < 0.3.5.1
cgi >= 0.3.6 < 0.3.7
cgi >= 0.4.0 < 0.4.2

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
ruby-net-imap 3.21-main 0.4.19-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
ruby-net-imap 3.20-main 0.4.19-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
ruby-net-imap 3.19-main 0.3.9-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
ruby 3.21-main 3.3.8-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
ruby 3.20-main 3.3.8-r0 Jakub Jirutka <jakub@jirutka.cz> fixed
ruby 3.19-main 3.2.8-r0 Jakub Jirutka <jakub@jirutka.cz> fixed