National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2012-6496 Detail

Current 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.

Source:  MITRE
View Analysis Description

Severity



CVSS 3.x Severity and Metrics:

NIST CVSS score
NIST: NVD
Base Score: N/A
NVD score not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
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 Exploit Patch
https://groups.google.com/group/rubyonrails-security/msg/23daa048baf28b64?dmode=source&output=gplain

Weakness Enumeration

CWE-ID CWE Name Source
CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') NIST  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:rubyonrails:rails:3.1.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.0:beta1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.0:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.0:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.0:rc3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.0:rc4:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.0:rc5:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.0:rc6:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.0:rc7:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.0:rc8:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.1:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.1:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.1:rc3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.2:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.2:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.4:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.5:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.1.8:*:*:*:*:*:*:*
     Show Matching CPE(s)

Configuration 2 ( hide )
 cpe:2.3:a:rubyonrails:rails:3.0.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.0:beta:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.0:beta2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.0:beta3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.0:beta4:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.0:rc:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.0:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.1:pre:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.2:pre:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.4:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.5:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.6:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.6:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.7:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.7:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.8:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.8:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.8:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.8:rc3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.8:rc4:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.9:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.9:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.9:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.9:rc3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.9:rc4:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.9:rc5:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.10:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.10:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.11:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.12:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.12:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.13:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.13:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.14:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.0.16:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:ruby_on_rails:3.0.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:ruby_on_rails:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (including)
3.0.17

Configuration 3 ( hide )
 cpe:2.3:a:rubyonrails:rails:3.2.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.0:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.0:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.2:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.3:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.3:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.4:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.8:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:rubyonrails:rails:3.2.9:*:*:*:*:*:*:*
     Show Matching CPE(s)


Change History

87 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2012-6496
NVD Published Date:
01/03/2013
NVD Last Modified:
08/08/2019