CVE-2025-27219Ruby-lang Cgi
High 7.5 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Cgi We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Mar 4, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-770
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Cgi.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | cgi |
< 0.3.5.1 |
0.3.5.1 |
gem "cgi", ">= 0.3.5.1" |
| RubyGems | cgi |
≥ 0.3.6 < 0.3.7 |
0.3.7 |
gem "cgi", ">= 0.3.7" |
| RubyGems | cgi |
≥ 0.4.0 < 0.4.2 |
0.4.2 |
gem "cgi", ">= 0.4.2" |
Per OSV / GitHub Advisories (GHSA-gh9q-2xrm-x6qv). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | cgi | < 0.3.5.1 |
| ruby-lang | cgi | ≥ 0.4.0 < 0.4.2 |
| ruby-lang | cgi | 0.3.6 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- hackerone.com Permissions Required
- lists.debian.org