CVE-2012-6496: Rubyonrails Rails

High severity, CVSS 7.5. EPSS: 4.6% probability of exploitation activity 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.

What to do

No fixed version is stated in NVD's or the CNA's structured data. The description says "before 3.0.18", "before 3.1.9", "before 3.2.10"; check the vendor's advisory for the release that fixes it.

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

Affected packages

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