Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-27219: CWE-770 Allocation of Resources Without Limits or Throttling in ruby-lang CGI

0
Medium
VulnerabilityCVE-2025-27219cvecve-2025-27219cwe-770
Published: Mon Mar 03 2025 (03/03/2025, 00:00:00 UTC)
Source: CVE Database V5
Vendor/Project: ruby-lang
Product: CGI

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.

AI-Powered Analysis

AILast updated: 11/04/2025, 00:22:19 UTC

Technical Analysis

CVE-2025-27219 is a resource exhaustion vulnerability classified under CWE-770 (Allocation of Resources Without Limits or Throttling) found in the Ruby CGI gem prior to version 0.4.2. The flaw resides in the CGI::Cookie.parse method, which processes HTTP cookie headers without imposing any constraints on the length of the raw cookie value. An attacker can exploit this by sending an HTTP request with an excessively large cookie, causing the method to allocate and process large amounts of memory and CPU resources. This unchecked resource consumption can degrade server performance or cause the application to crash, resulting in a Denial of Service (DoS) condition. The vulnerability is remotely exploitable without requiring authentication or user interaction, increasing its risk profile. The CVSS v3.1 score is 5.8 (medium severity), reflecting the network attack vector, low attack complexity, no privileges required, and no user interaction, but limited to availability impact only. No patches were available at the time of disclosure, so mitigation relies on monitoring and limiting request sizes at the application or web server level. The vulnerability affects Ruby CGI gem versions 0, 0.3.6, and 0.4.0, which are used in web applications that handle HTTP cookies via Ruby’s CGI library.

Potential Impact

For European organizations, this vulnerability poses a risk of service disruption through Denial of Service attacks targeting web applications that utilize the vulnerable Ruby CGI gem versions. The impact is primarily on availability, potentially causing downtime or degraded performance of critical web services. This can affect customer-facing applications, internal portals, or APIs relying on Ruby CGI for HTTP request processing. Organizations in sectors such as finance, government, healthcare, and e-commerce, which often deploy Ruby-based web applications, may experience operational interruptions and reputational damage if exploited. The lack of confidentiality or integrity impact limits data breach risks, but service outages can have cascading effects on business continuity and compliance with service-level agreements (SLAs). Given the remote exploitability and no authentication requirement, attackers can launch DoS attacks from anywhere, increasing the threat surface for European entities with internet-facing Ruby CGI applications.

Mitigation Recommendations

To mitigate CVE-2025-27219, organizations should upgrade the Ruby CGI gem to version 0.4.2 or later as soon as a patch is released. Until then, implement strict limits on HTTP request header sizes, particularly cookie header lengths, at the web server or application firewall level to prevent processing of excessively large cookies. Employ rate limiting and anomaly detection to identify and block suspicious requests with unusually large cookie values. Review and harden web application configurations to reject malformed or oversized headers. Additionally, monitor application logs for signs of resource exhaustion or abnormal request patterns indicative of attempted exploitation. Conduct security testing to verify that cookie parsing does not lead to resource overconsumption. Finally, maintain an inventory of Ruby CGI gem versions in use across the organization to prioritize patching and risk management efforts.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
mitre
Date Reserved
2025-02-20T00:00:00.000Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69091e18c28fd46ded869889

Added to database: 11/3/2025, 9:26:48 PM

Last enriched: 11/4/2025, 12:22:19 AM

Last updated: 11/4/2025, 11:00:00 AM

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats