CVE-2016-6317
Summary
| CVE | CVE-2016-6317 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2016-09-07 19:28:11 UTC |
| Updated | 2026-05-06 22:30:45 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.0 7.5 HIGH from [email protected]
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS: 0.003810000 probability, percentile 0.594930000 (date 2026-05-06)
Problem Types: CWE-284 | CWE-476 | n/a
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.0 | [email protected] | Primary | 7.5 | HIGH | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| 2.0 | [email protected] | Primary | 5 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
CVSS v3.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
HighAvailability
NoneCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
LowAuthentication
NoneConfidentiality
NoneIntegrity
PartialAvailability
NoneAV:N/AC:L/Au:N/C:N/I:P/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Rubyonrails | Rails | 4.2.0 | All | All | All |
| Application | Rubyonrails | Rails | 4.2.0 | beta1 | All | All |
| Application | Rubyonrails | Rails | 4.2.0 | beta2 | All | All |
| Application | Rubyonrails | Rails | 4.2.0 | beta3 | All | All |
| Application | Rubyonrails | Rails | 4.2.0 | beta4 | All | All |
| Application | Rubyonrails | Rails | 4.2.0 | rc1 | All | All |
| Application | Rubyonrails | Rails | 4.2.0 | rc2 | All | All |
| Application | Rubyonrails | Rails | 4.2.0 | rc3 | All | All |
| Application | Rubyonrails | Rails | 4.2.1 | All | All | All |
| Application | Rubyonrails | Rails | 4.2.1 | rc1 | All | All |
| Application | Rubyonrails | Rails | 4.2.1 | rc2 | All | All |
| Application | Rubyonrails | Rails | 4.2.1 | rc3 | All | All |
| Application | Rubyonrails | Rails | 4.2.1 | rc4 | All | All |
| Application | Rubyonrails | Rails | 4.2.2 | All | All | All |
| Application | Rubyonrails | Rails | 4.2.3 | All | All | All |
| Application | Rubyonrails | Rails | 4.2.3 | rc1 | All | All |
| Application | Rubyonrails | Rails | 4.2.4 | All | All | All |
| Application | Rubyonrails | Rails | 4.2.4 | rc1 | All | All |
| Application | Rubyonrails | Rails | 4.2.5 | All | All | All |
| Application | Rubyonrails | Rails | 4.2.5 | rc1 | All | All |
| Application | Rubyonrails | Rails | 4.2.5 | rc2 | All | All |
| Application | Rubyonrails | Rails | 4.2.5.1 | All | All | All |
| Application | Rubyonrails | Rails | 4.2.5.2 | All | All | All |
| Application | Rubyonrails | Rails | 4.2.6 | All | All | All |
| Application | Rubyonrails | Rails | 4.2.6 | rc1 | All | All |
| Application | Rubyonrails | Rails | 4.2.7 | All | All | All |
| Application | Rubyonrails | Rails | 4.2.7 | rc1 | All | All |
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| oss-security - [CVE-2016-6317] Unsafe Query Generation Risk in Active Record | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Mailing List, Third Party Advisory |
| Riding Rails: Rails 5.0.0.1, 4.2.7.1, and 3.2.22.3 have been released! | af854a3a-2127-422b-91ae-364da2661108 | weblog.rubyonrails.org | Release Notes |
| Ruby on Rails Active Record CVE-2016-6317 SQL Injection Vulnerability | af854a3a-2127-422b-91ae-364da2661108 | www.securityfocus.com | |
| Red Hat Customer Portal | af854a3a-2127-422b-91ae-364da2661108 | rhn.redhat.com | |
| Google Groups | af854a3a-2127-422b-91ae-364da2661108 | groups.google.com | |
| Google Groups | MITRE | groups.google.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.