CVE-2016-6317Rubyonrails Rails
High 7.5 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 3.9% probability of exploitation in 30 days · percentile 91
- Auth required
- No
- Published
- Sep 7, 2016
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
Action Record in Ruby on Rails 4.2.x before 4.2.7.1 does not properly consider differences in parameter handling between the Active Record component and the JSON implementation, which allows remote attackers to bypass intended database-query restrictions and perform NULL checks or trigger missing WHERE clauses via a crafted request, as demonstrated by certain "[nil]" values, a related issue to CVE-2012-2660, CVE-2012-2694, and CVE-2013-0155.
What to do
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | activerecord |
≥ 4.2.0 < 4.2.7.1 |
4.2.7.1 |
gem "activerecord", ">= 4.2.7.1" |
Per OSV / GitHub Advisories (GHSA-pr3r-4wrp-r2pv). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | 4.2.0 |
| rubyonrails | rails | 4.2.0 |
| rubyonrails | rails | 4.2.0 |
| rubyonrails | rails | 4.2.0 |
| rubyonrails | rails | 4.2.0 |
| rubyonrails | rails | 4.2.0 |
| rubyonrails | rails | 4.2.0 |
| rubyonrails | rails | 4.2.0 |
| rubyonrails | rails | 4.2.1 |
| rubyonrails | rails | 4.2.1 |
| rubyonrails | rails | 4.2.1 |
| rubyonrails | rails | 4.2.1 |
| rubyonrails | rails | 4.2.1 |
| rubyonrails | rails | 4.2.2 |
| rubyonrails | rails | 4.2.3 |
| rubyonrails | rails | 4.2.3 |
| rubyonrails | rails | 4.2.4 |
| rubyonrails | rails | 4.2.4 |
| rubyonrails | rails | 4.2.5 |
| rubyonrails | rails | 4.2.5 |
| rubyonrails | rails | 4.2.5 |
| rubyonrails | rails | 4.2.5.1 |
| rubyonrails | rails | 4.2.5.2 |
| rubyonrails | rails | 4.2.6 |
| rubyonrails | rails | 4.2.6 |
| rubyonrails | rails | 4.2.7 |
| rubyonrails | rails | 4.2.7 |
Official sources
References
Links published by the sources. Open them with care.
- rhn.redhat.com
- weblog.rubyonrails.org Release Notes
- www.openwall.com Mailing List Third Party Advisory
- www.securityfocus.com
- groups.google.com