CVE-2012-6496: Ruby on Rails - SQL Injection
- Cve: CVE-2012-6496
- Name: Ruby on Rails - SQL Injection
- Description: 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.
- Impact: Remote attackers can execute arbitrary SQL commands, potentially leading to data theft, modification, or deletion.
- Remediation: Update to version 3.0.18, 3.1.9, 3.2.10 or later versions.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P
- Epss score: 0.04582
- Epss percentile: 0.91858
- Assignee: [email protected]
- Published at: 2013-01-04T04:46:02Z
- Age in days: 5072
- Modified at: 2026-06-16T23:48:14Z
- Patch available: yes
- Public exploits total: 1
- References total: 9
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2012-6496
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=889649 | nvd | 2013-01-04 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| rubyonrails:rails | = 3.1.0 rc8, = 3.1.0 rc7, = 3.1.0 rc6, = 3.0.9 rc5, = 3.1.0 rc5, = 3.0.0 beta4, = 3.0.8 rc4, = 3.0.9 rc4, = 3.1.0 rc4, = 3.2.9, = 3.2.8, = 3.2.7, = 3.2.6, = 3.2.5, = 3.2.4, = 3.2.4 rc1, = 3.2.3, = 3.2.3 rc1, = 3.2.3 rc2, = 3.2.2, = 3.2.2 rc1, = 3.2.1, = 3.2.0, = 3.2.0 rc1, = 3.2.0 rc2, = 3.1.8, = 3.1.7, = 3.1.6, = 3.1.5, = 3.1.5 rc1, = 3.1.4, = 3.1.4 rc1, = 3.1.3, = 3.1.2, = 3.1.2 rc1, = 3.1.2 rc2, = 3.1.1, = 3.1.1 rc1, = 3.1.1 rc2, = 3.1.1 rc3, = 3.1.0, = 3.1.0 beta1, = 3.1.0 rc1, = 3.1.0 rc2, = 3.1.0 rc3, = 3.0.16, = 3.0.14, = 3.0.13, = 3.0.13 rc1, = 3.0.12, = 3.0.12 rc1, = 3.0.11, = 3.0.10, = 3.0.10 rc1, = 3.0.9, = 3.0.9 rc1, = 3.0.9 rc2, = 3.0.9 rc3, = 3.0.8, = 3.0.8 rc1, = 3.0.8 rc2, = 3.0.8 rc3, = 3.0.7, = 3.0.7 rc1, = 3.0.7 rc2, = 3.0.6, = 3.0.6 rc1, = 3.0.6 rc2, = 3.0.5, = 3.0.5 rc1, = 3.0.4 rc1, = 3.0.3, = 3.0.2, = 3.0.2 pre, = 3.0.1, = 3.0.1 pre, = 3.0.0, = 3.0.0 beta, = 3.0.0 beta2, = 3.0.0 beta3, = 3.0.0 rc, = 3.0.0 rc2 | no | nvd | /v1/products/rubyonrails/rails |
| rubyonrails:ruby_on_rails | <= 3.0.17, = 3.0.4 | no | nvd | /v1/products/rubyonrails/ruby_on_rails |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| rails/rails | commit, fix, package | yes | /v1/repositories/rails/rails |
Index
- Repositories: 1
- Packages: 1
- Checked, none or zero: repositories high signal
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2013-01-04
- Remote: yes
- Exposed hosts: 2416366
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports