Ruby on Rails where Method ActiveRecord Class SQL Injection

Metadata

medium
5.0
activerecord
CVE-2012-2661
osvdb.org
2012-05-31
2017-06-16 18:59
CVE-2012-2661 rails
CVE-2012-2661 ruby-activerecord-3.2
CVE-2012-2661
2017-04-01 19:10
2017-01-05 20:15

Description

Ruby on Rails (RoR) contains a flaw that may allow an attacker to carry out
an SQL injection attack. The issue is due to the ActiveRecord class not
properly sanitizing user-supplied input to the 'where' method. This may
allow an attacker to inject or manipulate SQL queries in an application
built on RoR, allowing for the manipulation or disclosure of arbitrary data.

Am I vulnerable?

The constraints below list the versions that this vulnerability is patched in, and versions that are unaffected. If a patch is ready but unrealeased, then it is pending.

Or, you can just let us figure it out for you! Appcanary continously monitor your installed packages, and tell you if any of them are vulnerable.

Sign up for monitoring

Affected package information

Package Patched in Unaffected in
activerecord ~> 3.0.13,~> 3.1.5,>= 3.2.4 ~> 2.3.14