CVE-2015-7581 actionpack is vulnerable to denial of service because of a wildcard controller route
Remote attackers can cause denial of service via excessive memory consumption in Ruby on Rails applications using wildcard controller routes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2015-7581?
CVE-2015-7581 is a high-severity denial of service vulnerability in Rubyonrails Rails, published on 16 Feb 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
actionpack/lib/action_dispatch/routing/route_set.rb in Action Pack in Ruby on Rails 4.x before 4.2.5.1 and 5.x before 5.0.0.beta1.1 allows remote attackers to cause a denial of service (superfluous caching and memory consumption) by leveraging an application's use of a wildcard controller route.
Weakness: CWE-399
Which versions are affected by CVE-2015-7581?
2 open source packages ship an affected version, including actionpack. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
actionpack RubyGems | From 4.0.0 | 4.2.5.1 |
actionpack RubyGems | From 4.0.0 | 4.2.5.1 |
Products include Rubyonrails Rails.
How do I fix CVE-2015-7581?
Upgrade actionpack to 4.2.5.1 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2015-7581 being exploited?
There is no known exploitation of CVE-2015-7581 in the wild and no public exploit code.
Other vulnerabilities in Rubyonrails Rails
- CVE-2013-0277 Active Record contains deserialization of arbitrary YAML
- CVE-2017-17916 SQL injection in n/a
- CVE-2017-17917 SQL injection in n/a
- CVE-2026-33195 Rails Active Storage has possible Path Traversal in DiskService
- CVE-2024-26142 Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch
Sources
Also known as DEBIAN-CVE-2015-7581, GHSA-9h6g-gp95-x3q5.