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.
- EPSS
- 4.6% chance of exploitation in the next 30 days; higher than 91% of CVEs (scores of 2026-10-31)
- CWE
- CWE-89
- Published
- Modified
- Record from
- the NVD, synced
Affected
- rubyonrails:rails
- rubyonrails:ruby_on_rails
Packages (OSV)
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-gh2w-j7cx-2664 | RubyGems | activerecord | >=3.0.0.beta <3.0.18 | 3.0.18 |
| GHSA-gh2w-j7cx-2664 | RubyGems | activerecord | >=3.1.0 <3.1.9 | 3.1.9 |
| GHSA-gh2w-j7cx-2664 | RubyGems | activerecord | >=3.2.0 <3.2.10 | 3.2.10 |
| GHSA-gh2w-j7cx-2664 | RubyGems | activerecord | <2.3.15 | 2.3.15 |