CVE-2016-6317
rubygem-activerecord: unsafe query generation in Active Record
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
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.
Action Record en Ruby en Rails 4.2.x en versiones anteriores a 4.2.7.1 no considera adecuadamente las diferencias en en el manejo de parámetros entre el componente Active Record y la implementación de JSON, lo que permite a atacantes remotos eludir restricciones destinadas a la consulta de base de datos y realizar comprobaciones NULL o desencadenar clausulas perdidas WHERE a través de un solicitud manipulada, como se demuestra por ciertos valores "[nil]", un problema relacionado con CVE-2012-2660, CVE-2012-2694 y CVE-2013-0155.
A flaw was found in the way Active Record handled certain special values in dynamic finders and relations. If a Ruby on Rails application performed JSON parameter parsing, a remote attacker could possibly manipulate search conditions in SQL queries generated by the application.
Ruby on Rails is a model-view-controller framework for web application development. Action View implements the view component, and Active Record implements the model component. Security Fix in rubygem-actionview: It was discovered that Action View tag helpers did not escape quotes when using strings declared as HTML safe as attribute values. A remote attacker could use this flaw to conduct a cross-site scripting attack.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2016-07-26 CVE Reserved
- 2016-09-07 CVE Published
- 2017-10-09 First Exploit
- 2024-08-06 CVE Updated
- 2025-03-30 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-20: Improper Input Validation
- CWE-284: Improper Access Control
- CWE-476: NULL Pointer Dereference
CAPEC
References (8)
URL | Tag | Source |
---|---|---|
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 | |
http://www.openwall.com/lists/oss-security/2016/08/11/4 | Mailing List |
|
http://www.securityfocus.com/bid/92434 | Vdb Entry | |
https://groups.google.com/forum/#%21topic/ruby-security-ann/WccgKSKiPZA | Mailing List |
URL | Date | SRC |
---|---|---|
https://github.com/kavgan/vuln_test_repo_public_ruby_gemfile_cve-2016-6317 | 2017-10-09 |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
http://rhn.redhat.com/errata/RHSA-2016-1855.html | 2023-11-07 | |
https://access.redhat.com/security/cve/CVE-2016-6317 | 2016-09-13 | |
https://bugzilla.redhat.com/show_bug.cgi?id=1365017 | 2016-09-13 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.0 Search vendor "Rubyonrails" for product "Rails" and version "4.2.0" | - |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.0 Search vendor "Rubyonrails" for product "Rails" and version "4.2.0" | beta1 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.0 Search vendor "Rubyonrails" for product "Rails" and version "4.2.0" | beta2 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.0 Search vendor "Rubyonrails" for product "Rails" and version "4.2.0" | beta3 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.0 Search vendor "Rubyonrails" for product "Rails" and version "4.2.0" | beta4 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.0 Search vendor "Rubyonrails" for product "Rails" and version "4.2.0" | rc1 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.0 Search vendor "Rubyonrails" for product "Rails" and version "4.2.0" | rc2 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.0 Search vendor "Rubyonrails" for product "Rails" and version "4.2.0" | rc3 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.1 Search vendor "Rubyonrails" for product "Rails" and version "4.2.1" | - |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.1 Search vendor "Rubyonrails" for product "Rails" and version "4.2.1" | rc1 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.1 Search vendor "Rubyonrails" for product "Rails" and version "4.2.1" | rc2 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.1 Search vendor "Rubyonrails" for product "Rails" and version "4.2.1" | rc3 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.1 Search vendor "Rubyonrails" for product "Rails" and version "4.2.1" | rc4 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.2 Search vendor "Rubyonrails" for product "Rails" and version "4.2.2" | - |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.3 Search vendor "Rubyonrails" for product "Rails" and version "4.2.3" | - |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.3 Search vendor "Rubyonrails" for product "Rails" and version "4.2.3" | rc1 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.4 Search vendor "Rubyonrails" for product "Rails" and version "4.2.4" | - |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.4 Search vendor "Rubyonrails" for product "Rails" and version "4.2.4" | rc1 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.5 Search vendor "Rubyonrails" for product "Rails" and version "4.2.5" | - |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.5 Search vendor "Rubyonrails" for product "Rails" and version "4.2.5" | rc1 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.5 Search vendor "Rubyonrails" for product "Rails" and version "4.2.5" | rc2 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.5.1 Search vendor "Rubyonrails" for product "Rails" and version "4.2.5.1" | - |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.5.2 Search vendor "Rubyonrails" for product "Rails" and version "4.2.5.2" | - |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.6 Search vendor "Rubyonrails" for product "Rails" and version "4.2.6" | - |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.6 Search vendor "Rubyonrails" for product "Rails" and version "4.2.6" | rc1 |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.7 Search vendor "Rubyonrails" for product "Rails" and version "4.2.7" | - |
Affected
| ||||||
Rubyonrails Search vendor "Rubyonrails" | Rails Search vendor "Rubyonrails" for product "Rails" | 4.2.7 Search vendor "Rubyonrails" for product "Rails" and version "4.2.7" | rc1 |
Affected
|