SQL Injection in Rubyonrails Rails
CVE-2012-6496
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v2 metric
CVSS v2 base score 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.046, 91.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Rubyonrails Rails — versions 3.1.0, 3.1.1, 3.1.2
- Rubyonrails Ruby On Rails — versions 3.0.4
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (Live-Hack-CVE/CVE-2012-5664). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugzilla.redhat.com/show_bug.cgi (Exploit, Patch)
- RHSA-2013:0155 (vendor-advisory)
- blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-h…
- RHSA-2013:0220 (vendor-advisory)
- GLSA-201401-22 (vendor-advisory)
- RHSA-2013:0154 (vendor-advisory)
- [rubyonrails-security] 20130102 SQL Injection Vulnerability in Ruby on Rails (CVE-2012-5664) (mailing-list)
- www.securityfocus.com/bid/57084 (vdb-entry)
- RHSA-2013:0544 (vendor-advisory)