CVE-2015-7581 actionpack is vulnerable to denial of service because of a wildcard controller route

High 7.5 Published Updated

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.

PackageAffectedFixed in
actionpack RubyGemsFrom 4.0.04.2.5.1
actionpack RubyGemsFrom 4.0.04.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.

All Rubyonrails Rails vulnerabilities

Sources

Also known as DEBIAN-CVE-2015-7581, GHSA-9h6g-gp95-x3q5.

Is CVE-2015-7581 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free