CVE-2025-27219

NameCVE-2025-27219
DescriptionIn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4082-1
Debian Bugs1103792

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby2.7 (PTS)bullseye2.7.4-1+deb11u1vulnerable
bullseye (security)2.7.4-1+deb11u5fixed
ruby3.1 (PTS)bookworm, bookworm (security)3.1.2-7+deb12u1vulnerable
ruby3.3 (PTS)sid, trixie3.3.8-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby2.7sourcebullseye2.7.4-1+deb11u5DLA-4082-1
ruby2.7source(unstable)(unfixed)
ruby3.1source(unstable)(unfixed)1103792
ruby3.3source(unstable)3.3.7-2

Notes

[bookworm] - ruby3.1 <no-dsa> (Minor issue)
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27219.yml
https://github.com/ruby/cgi/commit/9907b76dad0777ee300de236dad4b559e07596ab (v0.4.2)
https://github.com/ruby/cgi/pull/52

Search for package or bug name: Reporting problems