CVE-2016-0751 actionpack is vulnerable to denial of service via a crafted HTTP Accept header
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.
| Package | Affected | Fixed in |
|---|---|---|
actionpack RubyGems | All versions | 3.2.22.1 |
actionpack RubyGems | All versions | 3.2.22.1 |
actionpack RubyGems | From 4.0.0 | 4.1.14.1 |
actionpack RubyGems | From 4.0.0 | 4.1.14.1 |
actionpack RubyGems | From 4.2.0 | 4.2.5.1 |
actionpack RubyGems | From 4.2.0 | 4.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.
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-2016-0751, GHSA-ffpv-c4hm-3x6v.