CVE-2012-2661: Rubyonrails Rails

Medium severity, CVSS 5.0. EPSS: 4.1% chance of exploitation in the next 30 days.

The Active Record component in Ruby on Rails 3.0.x before 3.0.13, 3.1.x before 3.1.5, and 3.2.x before 3.2.4 does not properly implement the passing of request data to a where method in an ActiveRecord class, which allows remote attackers to conduct certain SQL injection attacks via nested query parameters that leverage unintended recursion, a related issue to CVE-2012-2695.

Affected products

  • Rubyonrails Rails: version 3.0.0 only; version 3.0.1 only; version 3.0.2 only; version 3.0.3 only; version 3.0.4 only; version 3.0.5 only; …
  • Rubyonrails Ruby On Rails: version 3.0.4 only

Published 2012-06-22. Last modified 2026-06-16.