Every CVE Search/ Get API key

CVE-2016-6317

ActiveRecord in Ruby on Rails allows database-query bypass

7.5 HighPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
High
Availability
None

Exploit likelihood

3.90%Down 3.3 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2016-6317
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:P/A:N
Weakness
CWE-284, CWE-476
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2016-6317
Updated
2026-11-02
EUVDEUVD-2017-0283 No score

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.

Record
EUVD-2017-0283
Updated
2026-11-03
GitHub AdvisoriesGHSA-pr3r-4wrp-r2pv 7.5

ActiveRecord in Ruby on Rails allows database-query bypass

Active 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.

Record
GHSA-pr3r-4wrp-r2pv
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-284, CWE-476
Updated
2026-11-02
OSV 7.5

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.

Record
CVE-2016-6317
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVDEBIAN-CVE-2016-6317 7.5

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.

Record
DEBIAN-CVE-2016-6317
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Updated
2026-11-02
OSVGHSA-pr3r-4wrp-r2pv 7.5

ActiveRecord in Ruby on Rails allows database-query bypass

Active 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.

Record
GHSA-pr3r-4wrp-r2pv
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness
CWE-284, CWE-476
Updated
2026-11-02
OSVRHSA-2016:1855 6.1

Red Hat Security Advisory: rh-ror42 security update

Record
RHSA-2016:1855
CVSS 3.0
6.1 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVSUSE-SU-2017:2716-1 No score

Security update for the Ruby on Rails stack

This update brings version 4.2.9 of the Ruby on Rails stack to provide the latest fixes and improvements from upstream.

The following security issues have been fixed by upstream:

rubygem-actionpack-4_2

  • CVE-2016-2098: Action Pack in Ruby on Rails allowed remote attackers to execute arbitrary Ruby code by leveraging an application's unrestricted use of the render method (bsc#968849).

rubygem-activerecord-4_2

  • CVE-2016-6317: Action Record did not properly consider differences in parameter handling between the Active Record component and the JSON implementation, which allowed remote attackers to bypass intended database-query restrictions and perform NULL checks or trigger missing WHERE clauses via a crafted request (bsc#993313).

rubygem-actionview-4_2

  • CVE-2016-6316: Cross-site scripting (XSS) vulnerability in Action View might have allowed remote attackers to inject arbitrary web script or HTML via text declared as 'HTML safe' and used as attribute values in tag handlers (bsc#993302).

Additionally, the following packages have been updated to version 4.2.9:

  • rubygem-rails-4_2
  • rubygem-railties-4_2
  • rubygem-activesupport-4_2
  • rubygem-activerecord-4_2
  • rubygem-activejob-4_2
  • rubygem-actionview-4_2
  • rubygem-actionpack-4_2
  • rubygem-actionmailer-4_2
Record
SUSE-SU-2017:2716-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
activerecord
RubyGems
4.2.0 to 4.2.7.0
4.2.7.1
rails
Debian:12
before 2:4.2.7.1-1
2:4.2.7.1-1
rails
Debian:13
before 2:4.2.7.1-1
2:4.2.7.1-1
rails
Debian:14
before 2:4.2.7.1-1
2:4.2.7.1-1
activerecord
RubyGems
4.2.0 up to 4.2.7.1, plus listed versions
4.2.14.2.1.rc14.2.1.rc24.2.1.rc34.2.1.rc4
Show 14 moreShow less
4.2.24.2.34.2.3.rc14.2.44.2.4.rc14.2.54.2.5.14.2.5.24.2.5.rc14.2.5.rc24.2.64.2.6.rc14.2.74.2.7.rc1
4.2.7.1
rh-ror42-rubygem-actionpack
Red Hat:rhel_software_collections:2::el7
before 1:4.2.6-3.el7
1:4.2.6-3.el7
rh-ror42-rubygem-actionpack-doc
Red Hat:rhel_software_collections:2::el7
before 1:4.2.6-3.el7
1:4.2.6-3.el7
rh-ror42-rubygem-actionview
Red Hat:rhel_software_collections:2::el7
before 0:4.2.6-3.el7
0:4.2.6-3.el7
rh-ror42-rubygem-actionview-doc
Red Hat:rhel_software_collections:2::el7
before 0:4.2.6-3.el7
0:4.2.6-3.el7
rh-ror42-rubygem-activerecord
Red Hat:rhel_software_collections:2::el7
before 1:4.2.6-3.el7
1:4.2.6-3.el7
Show 41 moreShow less
Affected packages
PackageAffectedFixed
rh-ror42-rubygem-activerecord-doc
Red Hat:rhel_software_collections:2::el7
before 1:4.2.6-3.el7
1:4.2.6-3.el7
rubygem-actionmailer-4_2
SUSE:OpenStack Cloud 6
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-actionpack-4_2
SUSE:OpenStack Cloud 6
before 4.2.9-7.3.1
4.2.9-7.3.1
rubygem-actionview-4_2
SUSE:OpenStack Cloud 6
before 4.2.9-9.3.1
4.2.9-9.3.1
rubygem-activejob-4_2
SUSE:OpenStack Cloud 6
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-activemodel-4_2
SUSE:OpenStack Cloud 6
before 4.2.9-6.3.1
4.2.9-6.3.1
rubygem-activerecord-4_2
SUSE:OpenStack Cloud 6
before 4.2.9-6.3.1
4.2.9-6.3.1
rubygem-activesupport-4_2
SUSE:OpenStack Cloud 6
before 4.2.9-7.3.1
4.2.9-7.3.1
rubygem-rails-4_2
SUSE:OpenStack Cloud 6
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-rails-html-sanitizer
SUSE:OpenStack Cloud 6
before 1.0.3-8.3.1
1.0.3-8.3.1
rubygem-railties-4_2
SUSE:OpenStack Cloud 6
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-actionmailer-4_2
SUSE:OpenStack Cloud 7
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-actionpack-4_2
SUSE:OpenStack Cloud 7
before 4.2.9-7.3.1
4.2.9-7.3.1
rubygem-actionview-4_2
SUSE:OpenStack Cloud 7
before 4.2.9-9.3.1
4.2.9-9.3.1
rubygem-activejob-4_2
SUSE:OpenStack Cloud 7
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-activemodel-4_2
SUSE:OpenStack Cloud 7
before 4.2.9-6.3.1
4.2.9-6.3.1
rubygem-activerecord-4_2
SUSE:OpenStack Cloud 7
before 4.2.9-6.3.1
4.2.9-6.3.1
rubygem-activesupport-4_2
SUSE:OpenStack Cloud 7
before 4.2.9-7.3.1
4.2.9-7.3.1
rubygem-rails-4_2
SUSE:OpenStack Cloud 7
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-rails-html-sanitizer
SUSE:OpenStack Cloud 7
before 1.0.3-8.3.1
1.0.3-8.3.1
rubygem-railties-4_2
SUSE:OpenStack Cloud 7
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-actionmailer-4_2
SUSE:Enterprise Storage 3
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-actionpack-4_2
SUSE:Enterprise Storage 3
before 4.2.9-7.3.1
4.2.9-7.3.1
rubygem-actionview-4_2
SUSE:Enterprise Storage 3
before 4.2.9-9.3.1
4.2.9-9.3.1
rubygem-activejob-4_2
SUSE:Enterprise Storage 3
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-activemodel-4_2
SUSE:Enterprise Storage 3
before 4.2.9-6.3.1
4.2.9-6.3.1
rubygem-activerecord-4_2
SUSE:Enterprise Storage 3
before 4.2.9-6.3.1
4.2.9-6.3.1
rubygem-activesupport-4_2
SUSE:Enterprise Storage 3
before 4.2.9-7.3.1
4.2.9-7.3.1
rubygem-rails-4_2
SUSE:Enterprise Storage 3
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-rails-html-sanitizer
SUSE:Enterprise Storage 3
before 1.0.3-8.3.1
1.0.3-8.3.1
rubygem-railties-4_2
SUSE:Enterprise Storage 3
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-actionmailer-4_2
SUSE:Enterprise Storage 4
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-actionpack-4_2
SUSE:Enterprise Storage 4
before 4.2.9-7.3.1
4.2.9-7.3.1
rubygem-actionview-4_2
SUSE:Enterprise Storage 4
before 4.2.9-9.3.1
4.2.9-9.3.1
rubygem-activejob-4_2
SUSE:Enterprise Storage 4
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-activemodel-4_2
SUSE:Enterprise Storage 4
before 4.2.9-6.3.1
4.2.9-6.3.1
rubygem-activerecord-4_2
SUSE:Enterprise Storage 4
before 4.2.9-6.3.1
4.2.9-6.3.1
rubygem-activesupport-4_2
SUSE:Enterprise Storage 4
before 4.2.9-7.3.1
4.2.9-7.3.1
rubygem-rails-4_2
SUSE:Enterprise Storage 4
before 4.2.9-3.3.1
4.2.9-3.3.1
rubygem-rails-html-sanitizer
SUSE:Enterprise Storage 4
before 1.0.3-8.3.1
1.0.3-8.3.1
rubygem-railties-4_2
SUSE:Enterprise Storage 4
before 4.2.9-3.3.1
4.2.9-3.3.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubkavgan/vuln_test_repo_public_ruby_gemfile_cve-2016-63172017-09-26

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-6317 is a high vulnerability (CVSS 7.5) in Rubyonrails Rails, published September 7, 2016. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 3.90%, the 90th percentile. Fixed in activerecord 4.2.7.1.

References

Show 21 moreShow less
MoveEnter Open