Active Record vulnerable to SQL Injection via nested query parameters (GHSA-fh39-v733-mxfr)
Published: 2017-10-24T18:33:38Z
Aliases: CVE-2012-2661
Severity: MODERATE · CWE: CWE-89

The Active Record component in Ruby on Rails 3.0.x before 3.0.13, 3.1.x before 3.1.5, and 3.2.x before 3.2.4 does not properly implement the passing of request data to a where method in an ActiveRecord class, which allows remote attackers to conduct certain SQL injection attacks via nested query parameters that leverage unintended recursion, a related issue to CVE-2012-2695.

Affected packages:
package: ecosystem: RubyGems
name: activerecord
ranges: type: ECOSYSTEM
events: introduced: 3.0.0
fixed: 3.0.13
package: ecosystem: RubyGems
name: activerecord
ranges: type: ECOSYSTEM
events: introduced: 3.1.0
fixed: 3.1.5
package: ecosystem: RubyGems
name: activerecord
ranges: type: ECOSYSTEM
events: introduced: 3.2.0
fixed: 3.2.4