CVE-2016-6317

Summary

CVECVE-2016-6317
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2016-09-07 19:28:11 UTC
Updated2026-05-06 22:30:45 UTC
DescriptionAction 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


VersionSourceTypeScoreSeverityVector
3.0[email protected]Primary7.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
2.0[email protected]Primary5AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS v3.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
None
Integrity
Partial
Availability
None

AV:N/AC:L/Au:N/C:N/I:P/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
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

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report