CVE-2012-2661

Ruby on Rails <3.0.13, <3.1.5, <3.2.4 - SQL Injection

Title source: llm

Description

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.

Exploits (1)

nomisec WRITEUP 1 stars
by r4x0r1337 · poc
https://github.com/r4x0r1337/-CVE-2012-2661-ActiveRecord-SQL-injection-

Scores

EPSS 0.0073
EPSS Percentile 72.7%

Details

CWE
CWE-89
Status published
Products (17)
rubygems/activerecord 3.0.0 - 3.0.13RubyGems
rubyonrails/rails 3.0.0 (7 CPE variants)
rubyonrails/rails 3.0.1 (2 CPE variants)
rubyonrails/rails 3.0.2 (2 CPE variants)
rubyonrails/rails 3.0.3
rubyonrails/rails 3.0.4 rc1
rubyonrails/rails 3.0.5 (2 CPE variants)
rubyonrails/rails 3.0.6 (3 CPE variants)
rubyonrails/rails 3.0.7 (3 CPE variants)
rubyonrails/rails 3.0.8 (5 CPE variants)
... and 7 more
Published Jun 22, 2012
Tracked Since Feb 18, 2026