rubygem-activerecord: unsafe query generation in Active Record
Published Sep 7, 2016
7.5
HIGHCVSS 3.0
EPSS 3.90%
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.
Affected products
No data.
- 4.2.0
- 4.2.0
- 4.2.0
- 4.2.0
- 4.2.0
- 4.2.0
- 4.2.0
- 4.2.0
- 4.2.1
- 4.2.1
- 4.2.1
- 4.2.1
- 4.2.1
- 4.2.2
- 4.2.3
- 4.2.3
- 4.2.4
- 4.2.4
- 4.2.5
- 4.2.5
- 4.2.5
- 4.2.5.1
- 4.2.5.2
- 4.2.6
- 4.2.6
- 4.2.7
- 4.2.7
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ror42-rubygem-actionpack-1:4.2.6-3.el7
Fixed · RHSA-2016:1855
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ror42-rubygem-actionview-0:4.2.6-3.el7
Fixed · RHSA-2016:1855
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ror42-rubygem-activerecord-1:4.2.6-3.el7
Fixed · RHSA-2016:1855
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
rh-ror42-rubygem-actionpack-1:4.2.6-3.el7
Fixed · RHSA-2016:1855
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
rh-ror42-rubygem-actionview-0:4.2.6-3.el7
Fixed · RHSA-2016:1855
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
rh-ror42-rubygem-activerecord-1:4.2.6-3.el7
Fixed · RHSA-2016:1855
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-ror42-rubygem-actionpack-1:4.2.6-3.el7
Fixed · RHSA-2016:1855
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-ror42-rubygem-actionview-0:4.2.6-3.el7
Fixed · RHSA-2016:1855
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-ror42-rubygem-activerecord-1:4.2.6-3.el7
Fixed · RHSA-2016:1855
OpenStack Foreman
ruby193-rubygem-activerecord
Not affected
Red Hat Software Collections
rh-ror41-rubygem-activerecord
Not affected
Red Hat Software Collections
ror40-rubygem-activerecord
Not affected
Red Hat Software Collections
ruby193-rubygem-activerecord
Not affected
Red Hat Subscription Asset Manager
ruby193-rubygem-activerecord
Not affected
Red Hat Subscription Asset Manager
rubygem-activerecord
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ror42-rubygem-actionpack-1:4.2.6-3.el7 | Fixed | RHSA-2016:1855 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ror42-rubygem-actionview-0:4.2.6-3.el7 | Fixed | RHSA-2016:1855 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ror42-rubygem-activerecord-1:4.2.6-3.el7 | Fixed | RHSA-2016:1855 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | rh-ror42-rubygem-actionpack-1:4.2.6-3.el7 | Fixed | RHSA-2016:1855 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | rh-ror42-rubygem-actionview-0:4.2.6-3.el7 | Fixed | RHSA-2016:1855 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | rh-ror42-rubygem-activerecord-1:4.2.6-3.el7 | Fixed | RHSA-2016:1855 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-ror42-rubygem-actionpack-1:4.2.6-3.el7 | Fixed | RHSA-2016:1855 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-ror42-rubygem-actionview-0:4.2.6-3.el7 | Fixed | RHSA-2016:1855 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-ror42-rubygem-activerecord-1:4.2.6-3.el7 | Fixed | RHSA-2016:1855 |
| OpenStack Foreman | ruby193-rubygem-activerecord | Not affected | n/a |
| Red Hat Software Collections | rh-ror41-rubygem-activerecord | Not affected | n/a |
| Red Hat Software Collections | ror40-rubygem-activerecord | Not affected | n/a |
| Red Hat Software Collections | ruby193-rubygem-activerecord | Not affected | n/a |
| Red Hat Subscription Asset Manager | ruby193-rubygem-activerecord | Not affected | n/a |
| Red Hat Subscription Asset Manager | rubygem-activerecord | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
AV:N/AC:L/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (15 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.90% (0.03903) | 89.94th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.80% (0.03797) | 88.58th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.38% (0.00381) | 56.56th | v4 (v2025.03.14) |
| Mar 29, 2025 | 33.36% (0.33360) | 95.20th | v4 (v2025.03.14) |
| Mar 28, 2025 | 0.38% (0.00381) | 56.62th | v4 (v2025.03.14) |
| Mar 27, 2025 | 33.36% (0.33360) | 96.31th | v4 (v2025.03.14) |
| Mar 20, 2025 | 3.16% (0.03161) | 85.85th | v4 (v2025.03.14) |
| Mar 19, 2025 | 33.36% (0.33360) | 96.38th | v4 (v2025.03.14) |
| Mar 17, 2025 | 3.16% (0.03161) | 86.07th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.37% (0.00367) | 73.35th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.29% (0.00293) | 68.30th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.29% (0.00293) | 64.26th | v3 (v2023.03.01) |
| Mar 6, 2023 | 7.18% (0.07176) | 92.30th | v2 (v2022.01.01) |
| Apr 1, 2022 | 7.18% (0.07176) | 91.55th | v2 (v2022.01.01) |
| Feb 4, 2022 | 7.18% (0.07176) | 80.33th | v2 (v2022.01.01) |
References (14)
- http://rhn.redhat.com/errata/RHSA-2016-1855.html vendor-advisoryx_refsource_REDHAT
- http://weblog.rubyonrails.org/2016/8/11/Rails-5-0-0-1-4-2-7-2-and-3-2-22-3-have-been-released/ x_refsource_CONFIRMRelease Notes
- http://www.openwall.com/lists/oss-security/2016/08/11/4 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.securityfocus.com/bid/92434 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2016-6317 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1365017 Issue Tracking
- https://github.com/advisories/GHSA-pr3r-4wrp-r2pv Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2016-6317.yml
- https://groups.google.com/forum/#!msg/rubyonrails-security/rgO20zYW33s/gmamLa-wDAAJ
- https://groups.google.com/forum/#!topic/ruby-security-ann/WccgKSKiPZA
- https://groups.google.com/forum/#!topic/rubyonrails-security/rgO20zYW33s
- https://groups.google.com/forum/#%21topic/ruby-security-ann/WccgKSKiPZA mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2016-6317
- https://www.cve.org/CVERecord?id=CVE-2016-6317
Change history (0)
No recorded changes yet.