CVE-2012-6496: Rubyonrails Rails

High severity, CVSS 7.5. EPSS: 4.6% chance of exploitation in the next 30 days.

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.

Affected products

  • Rubyonrails Rails: version 3.1.0 only; version 3.1.1 only; version 3.1.2 only; version 3.1.3 only; version 3.1.4 only; version 3.1.5 only; …
  • Rubyonrails Ruby On Rails: up to and including 3.0.17; version 3.0.4 only

Published 2013-01-04. Last modified 2026-06-16.