CVE-2012-6496
Severity CVSS v4.0:
Pending analysis
Type:
CWE-89
SQL Injection
Publication date:
04/01/2013
Last modified:
11/04/2025
Description
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.
Impact
Base Score 2.0
7.50
Severity 2.0
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:rubyonrails:rails:3.1.0:*:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.0:beta1:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.0:rc1:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.0:rc2:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.0:rc3:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.0:rc4:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.0:rc5:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.0:rc6:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.0:rc7:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.0:rc8:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.1:*:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.1:rc1:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.1:rc2:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.1:rc3:*:*:*:*:*:* | ||
| cpe:2.3:a:rubyonrails:rails:3.1.2:*:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/
- http://rhn.redhat.com/errata/RHSA-2013-0154.html
- http://rhn.redhat.com/errata/RHSA-2013-0155.html
- http://rhn.redhat.com/errata/RHSA-2013-0220.html
- http://rhn.redhat.com/errata/RHSA-2013-0544.html
- http://security.gentoo.org/glsa/glsa-201401-22.xml
- http://www.securityfocus.com/bid/57084
- https://bugzilla.redhat.com/show_bug.cgi?id=889649
- https://groups.google.com/group/rubyonrails-security/msg/23daa048baf28b64?dmode=source&output=gplain
- http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/
- http://rhn.redhat.com/errata/RHSA-2013-0154.html
- http://rhn.redhat.com/errata/RHSA-2013-0155.html
- http://rhn.redhat.com/errata/RHSA-2013-0220.html
- http://rhn.redhat.com/errata/RHSA-2013-0544.html
- http://security.gentoo.org/glsa/glsa-201401-22.xml
- http://www.securityfocus.com/bid/57084
- https://bugzilla.redhat.com/show_bug.cgi?id=889649
- https://groups.google.com/group/rubyonrails-security/msg/23daa048baf28b64?dmode=source&output=gplain



