CVE-2016-0751 actionpack is vulnerable to denial of service via a crafted HTTP Accept header

High 7.5 Published Updated

Remote attackers can cause denial of service via memory consumption by sending crafted HTTP Accept headers to Ruby on Rails applications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2016-0751?

CVE-2016-0751 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/http/mime_type.rb in Action Pack in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1 does not properly restrict use of the MIME type cache, which allows remote attackers to cause a denial of service (memory consumption) via a crafted HTTP Accept header.

Weakness: CWE-399

Which versions are affected by CVE-2016-0751?

6 open source packages ship an affected version, including actionpack. It affects 2 products.

PackageAffectedFixed in
actionpack RubyGemsAll versions3.2.22.1
actionpack RubyGemsAll versions3.2.22.1
actionpack RubyGemsFrom 4.0.04.1.14.1
actionpack RubyGemsFrom 4.0.04.1.14.1
actionpack RubyGemsFrom 4.2.04.2.5.1
actionpack RubyGemsFrom 4.2.04.2.5.1

Products include Rubyonrails Rails, Rubyonrails Ruby on Rails.

How do I fix CVE-2016-0751?

Upgrade actionpack to a fixed version for your release line: 3.2.22.1, 4.1.14.1 or 4.2.5.1.

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-2016-0751 being exploited?

There is no known exploitation of CVE-2016-0751 in the wild and no public exploit code.

All Rubyonrails Rails vulnerabilities

Sources

Also known as DEBIAN-CVE-2016-0751, GHSA-ffpv-c4hm-3x6v.

Is CVE-2016-0751 in your software?

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

Check your SBOMs for free