7.5
HIGH CVSS 3.0
CVE-2016-6317
Ruby on Rails Active Record JSON Bypass Vulnerability
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.

INFO

Published Date :

Sept. 7, 2016, 7:28 p.m.

Last Modified :

April 12, 2025, 10:46 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2016-6317 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Rubyonrails rails
1 Activerecord_project activerecord
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
CVSS 3.0 HIGH [email protected]
Solution
A vulnerability in Ruby on Rails allows attackers to bypass intended database-query restrictions.
  • Update the affected packages.
  • Restart the application for the changes to take effect.
Public PoC/Exploit Available at Github

CVE-2016-6317 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2016-6317 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Ruby

Updated: 7 years, 10 months ago
0 stars 0 fork 0 watcher
Born at : Sept. 26, 2017, 4:42 p.m. This repo has been linked 4 different CVEs too.

None

Ruby Shell

Updated: 7 years, 7 months ago
3 stars 0 fork 0 watcher
Born at : Dec. 14, 2016, 9:40 p.m. This repo has been linked 2 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2016-6317 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2016-6317 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-1855.html
    Added Reference http://weblog.rubyonrails.org/2016/8/11/Rails-5-0-0-1-4-2-7-2-and-3-2-22-3-have-been-released/
    Added Reference http://www.openwall.com/lists/oss-security/2016/08/11/4
    Added Reference http://www.securityfocus.com/bid/92434
    Added Reference https://groups.google.com/forum/#%21topic/ruby-security-ann/WccgKSKiPZA
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added Reference Red Hat, Inc. https://groups.google.com/forum/#%21topic/ruby-security-ann/WccgKSKiPZA [No types assigned]
    Removed Reference Red Hat, Inc. https://groups.google.com/forum/#!topic/ruby-security-ann/WccgKSKiPZA
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.5.2:*:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.5.2:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.5.1:*:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.5.1:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.2:*:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.2:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.7:*:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.7:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.7:rc1:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.7:rc1:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.6:*:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.6:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.6:rc1:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.6:rc1:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.5:*:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.5:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.5:rc2:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.5:rc2:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.5:rc1:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.5:rc1:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.4:rc1:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.4:rc1:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.4:*:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.4:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.3:*:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.3:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.3:rc1:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.3:rc1:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.1:rc4:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.1:rc4:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.1:*:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.1:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.1:rc3:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.1:rc3:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.1:rc2:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.1:rc2:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.1:rc1:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.1:rc1:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:*:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.0:*:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:rc3:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.0:rc3:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:rc2:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.0:rc2:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:rc1:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.0:rc1:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:beta4:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.0:beta4:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:beta3:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.0:beta3:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:beta2:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.0:beta2:*:*:*:*:*:*
  • CPE Deprecation Remap by [email protected]

    Aug. 08, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:beta1:*:*:*:*:*:* OR *cpe:2.3:a:rubyonrails:rails:4.2.0:beta1:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Aug. 13, 2018

    Action Type Old Value New Value
    Removed Reference https://groups.google.com/forum/#%21topic/ruby-security-ann/WccgKSKiPZA [Mailing List, Third Party Advisory]
    Added Reference https://groups.google.com/forum/#!topic/ruby-security-ann/WccgKSKiPZA [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 28, 2016

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/92434 [No Types Assigned]
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-1855.html [No Types Assigned]
  • Modified Analysis by [email protected]

    Sep. 09, 2016

    Action Type Old Value New Value
    Changed Reference Type https://groups.google.com/forum/#%21topic/ruby-security-ann/WccgKSKiPZA No Types Assigned https://groups.google.com/forum/#%21topic/ruby-security-ann/WccgKSKiPZA Third Party Advisory, Mailing List
  • CVE Modified by [email protected]

    Sep. 09, 2016

    Action Type Old Value New Value
    Removed Reference https://groups.google.com/forum/#!topic/ruby-security-ann/WccgKSKiPZA
    Added Reference https://groups.google.com/forum/#%21topic/ruby-security-ann/WccgKSKiPZA
  • Modified Analysis by [email protected]

    Sep. 08, 2016

    Action Type Old Value New Value
    Added CPE Configuration Configuration 1 OR *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.4:*:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.3:*:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.3:rc1:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.4:rc1:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.6:rc1:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.1:rc1:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.1:rc2:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.1:rc3:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.1:rc4:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.1:*:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.2:*:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.5:*:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.5:rc1:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.5:rc2:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:beta4:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:beta3:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:beta2:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:rc1:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:beta1:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:rc2:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:rc3:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.5.1:*:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.5.2:*:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.6:*:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.7:rc1:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.7:*:*:*:*:*:*:* *cpe:2.3:a:rubyonrails:ruby_on_rails:4.2.0:*:*:*:*:*:*:*
    Added CVSS V2 (AV:N/AC:L/Au:N/C:N/I:P/A:N)
    Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
    Changed Reference Type https://groups.google.com/forum/#!topic/ruby-security-ann/WccgKSKiPZA No Types Assigned https://groups.google.com/forum/#!topic/ruby-security-ann/WccgKSKiPZA Third Party Advisory
    Changed Reference Type http://www.openwall.com/lists/oss-security/2016/08/11/4 No Types Assigned http://www.openwall.com/lists/oss-security/2016/08/11/4 Third Party Advisory, Mailing List
    Changed Reference Type http://weblog.rubyonrails.org/2016/8/11/Rails-5-0-0-1-4-2-7-2-and-3-2-22-3-have-been-released/ No Types Assigned http://weblog.rubyonrails.org/2016/8/11/Rails-5-0-0-1-4-2-7-2-and-3-2-22-3-have-been-released/ Release Notes
    Added CWE CWE-284
    Added CWE CWE-476
  • Initial Analysis by [email protected]

    Sep. 08, 2016

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 5
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.38 }} 0.08%

score

0.58751

percentile