Active Record contains SQL Injection
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| activerecord RubyGems |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| activerecord RubyGems |
|
|
SQL injection vulnerability in the Active Record component in Ruby on Rails before 3.0.18, 3.1.x before 3.1.9, and 3.2.x before 3.2.10 allows remote attackers to execute arbitrary SQL commands via a crafted request that leverages incorrect behavior of dynamic finders in applications that can use unexpected data types in certain find_by_ method calls.
From the CVE record · mitre
Active Record's dynamic finders are vulnerable to SQL injection when an application allows unexpected data types in certain find_by_ calls. A remote attacker can send a crafted request to execute arbitrary SQL commands. The input does not specify whether authentication or user interaction is required.
Check applications using the RubyGems activerecord package in versions before 2.3.15, from 3.0.0.beta to before 3.0.18, from 3.1.0 to before 3.1.9, or from 3.2.0 to before 3.2.10.