# CVE-2012-6496

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2013-01-04 · Modified: 2024-08-06
- Aliases: UBUNTU-CVE-2012-6496, DEBIAN-CVE-2012-6496, GHSA-gh2w-j7cx-2664
- Record: https://cvemate.com/vulnerability/CVE-2012-6496 · JSON: https://cvemate.com/vulnerability/CVE-2012-6496/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v2.0, NVD) AV:N/AC:L/Au:N/C:P/I:P/A:P
- EPSS: 4.544%, percentile 91.824%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian rails (Debian): \< 2.3.14.1
- ubuntu ruby-activerecord-3.2 (Ubuntu): \< 3.2.16-1
- RubyGems activerecord (RubyGems): ≥ 3.0.0.beta, \< 3.0.18 \| ≥ 3.1.0, \< 3.1.9 \| ≥ 3.2.0, \< 3.2.10 \| \< 2.3.15
- rubyonrails rails: 3.1.0 \| 3.1.0:beta1 \| 3.1.0:rc1 \| 3.1.0:rc2 \| 3.1.0:rc3 \| 3.1.0:rc4 \| 3.1.0:rc5 \| 3.1.0:rc6 \| 3.1.0:rc7 \| 3.1.0:rc8 \| 3.1.1 \| 3.1.1:rc1 \| 3.1.1:rc2 \| 3.1.1:rc3 \| 3.1.2 \| 3.1.2:rc1 \| 3.1.2:rc2 \| 3.1.3 \| 3.1.4 \| 3.1.4:rc1 \| 3.1.5 \| 3.1.5:rc1 \| 3.1.6 \| 3.1.7 \| 3.1.8 \| 3.0.0 \| 3.0.0:beta \| 3.0.0:beta2 \| 3.0.0:beta3 \| 3.0.0:beta4 \| 3.0.0:rc \| 3.0.0:rc2 \| 3.0.1 \| 3.0.1:pre \| 3.0.2 \| 3.0.2:pre \| 3.0.3 \| 3.0.4:rc1 \| 3.0.5 \| 3.0.5:rc1 \| 3.0.6 \| 3.0.6:rc1 \| 3.0.6:rc2 \| 3.0.7 \| 3.0.7:rc1 \| 3.0.7:rc2 \| 3.0.8 \| 3.0.8:rc1 \| 3.0.8:rc2 \| 3.0.8:rc3 \| 3.0.8:rc4 \| 3.0.9 \| 3.0.9:rc1 \| 3.0.9:rc2 \| 3.0.9:rc3 \| 3.0.9:rc4 \| 3.0.9:rc5 \| 3.0.10 \| 3.0.10:rc1 \| 3.0.11 \| 3.0.12 \| 3.0.12:rc1 \| 3.0.13 \| 3.0.13:rc1 \| 3.0.14 \| 3.0.16 \| 3.2.0 \| 3.2.0:rc1 \| 3.2.0:rc2 \| 3.2.1 \| 3.2.2 \| 3.2.2:rc1 \| 3.2.3 \| 3.2.3:rc1 \| 3.2.3:rc2 \| 3.2.4 \| 3.2.4:rc1 \| 3.2.5 \| 3.2.6 \| 3.2.7 \| 3.2.8 \| 3.2.9
- rubyonrails ruby\_on\_rails: ≤ 3.0.17 \| 3.0.4

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=889649>
- <http://rhn.redhat.com/errata/RHSA-2013-0155.html>
- <http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/>
- <http://rhn.redhat.com/errata/RHSA-2013-0220.html>
- <http://security.gentoo.org/glsa/glsa-201401-22.xml>
- <http://rhn.redhat.com/errata/RHSA-2013-0154.html>
- <https://groups.google.com/group/rubyonrails-security/msg/23daa048baf28b64?dmode=source&output=gplain>
- <http://www.securityfocus.com/bid/57084>
- <http://rhn.redhat.com/errata/RHSA-2013-0544.html>
- <https://ubuntu.com/security/CVE-2012-6496>
- <http://www.openwall.com/lists/oss-security/2013/01/03/5>
- <http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts>
- <https://groups.google.com/forum/#!topic/rubyonrails-security/DCNTNp_qjFM>
- <http://www.openwall.com/lists/oss-security/2013/01/03/12>
- <https://www.cve.org/CVERecord?id=CVE-2012-6496>
- <https://security-tracker.debian.org/tracker/CVE-2012-6496>
- <https://nvd.nist.gov/vuln/detail/CVE-2012-6496>
- <https://github.com/rails/rails/commit/9de9b359d0d24f70f0f6c5c58a7ad8750684d456>
- <https://github.com/rails/rails>

---

Data as of 2026-12-05T07:57:44.172Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
