CVE-2012-6496
Active Record contains SQL Injection
CVE-2012-6496 is a high vulnerability (CVSS 7.5) in Rubyonrails Rails, published January 4, 2013. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.58%, the 91st percentile. Fixed in activerecord 3.1.9.
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.
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2012-6496- CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-89
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2012-6496- Updated
- 2026-11-02
EUVDEUVD-2017-0238 No score
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.
- Record
EUVD-2017-0238- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-gh2w-j7cx-2664 No score
Active Record contains SQL Injection
SQL injection vulnerability in the Active Record component in Ruby on Rails before 2.3.15, 3.0.x 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.
- Record
GHSA-gh2w-j7cx-2664- Weakness
- CWE-89
- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2012-6496- Updated
- 2026-11-02
OSVDEBIAN-CVE-2012-6496 No score
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.
- Record
DEBIAN-CVE-2012-6496- Updated
- 2026-11-02
OSVGHSA-gh2w-j7cx-2664 No score
Active Record contains SQL Injection
SQL injection vulnerability in the Active Record component in Ruby on Rails before 2.3.15, 3.0.x 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.
- Record
GHSA-gh2w-j7cx-2664- Weakness
- CWE-89
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2012-6496 No score
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.
- Record
UBUNTU-CVE-2012-6496- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
activerecordRubyGems |
3.1.0 up to 3.1.9 | 3.1.9 |
activerecordRubyGems |
3.2.0 up to 3.2.10 | 3.2.10 |
activerecordRubyGems |
3.0.0.beta up to 3.0.18 | 3.0.18 |
activerecordRubyGems |
before 2.3.15 | 2.3.15 |
railsDebian:12 |
before 2.3.14.1 | 2.3.14.1 |
railsDebian:13 |
before 2.3.14.1 | 2.3.14.1 |
railsDebian:14 |
before 2.3.14.1 | 2.3.14.1 |
railsDebian:6.0 |
before 2.3.5-1.2+squeeze4, plus listed versions 2.3.5-1.22.3.5-1.2+squeeze0.12.3.5-1.2+squeeze12.3.5-1.2+squeeze22.3.5-1.2+squeeze3 |
2.3.5-1.2+squeeze4 |
activerecordRubyGems |
3.0.0.beta up to 3.0.18, plus listed versions 3.0.03.0.0.beta23.0.0.beta33.0.0.beta43.0.0.rc Show 34 moreShow less3.0.0.rc23.0.13.0.103.0.10.rc13.0.113.0.123.0.12.rc13.0.133.0.13.rc13.0.143.0.153.0.163.0.173.0.23.0.33.0.43.0.4.rc13.0.53.0.5.rc13.0.63.0.6.rc13.0.6.rc23.0.73.0.7.rc13.0.7.rc23.0.83.0.8.rc13.0.8.rc23.0.8.rc43.0.93.0.9.rc13.0.9.rc33.0.9.rc43.0.9.rc5 |
3.0.18 |
activerecordRubyGems |
3.1.0 up to 3.1.9, plus listed versions 3.1.13.1.1.rc13.1.1.rc23.1.1.rc33.1.2 Show 10 moreShow less3.1.2.rc13.1.2.rc23.1.33.1.43.1.4.rc13.1.53.1.5.rc13.1.63.1.73.1.8 |
3.1.9 |
Show 36 moreShow less
| Package | Affected | Fixed |
|---|---|---|
activerecordRubyGems |
3.2.0 up to 3.2.10, plus listed versions 3.2.13.2.23.2.2.rc13.2.33.2.3.rc1 Show 14 moreShow less3.2.3.rc23.2.43.2.4.rc13.2.53.2.63.2.73.2.7.rc13.2.83.2.8.rc13.2.8.rc23.2.93.2.9.rc13.2.9.rc23.2.9.rc3 |
3.2.10 |
activerecordRubyGems |
before 2.3.15, plus listed versions 1.0.01.1.01.10.01.10.11.11.0 Show 45 moreShow less1.11.11.12.11.12.21.13.01.13.11.13.21.14.01.14.11.14.21.14.31.14.41.15.01.15.11.15.21.15.31.15.41.15.51.15.61.2.01.3.01.4.01.5.01.5.11.6.01.7.01.8.01.9.01.9.12.0.02.0.12.0.22.0.42.0.52.1.02.1.12.1.22.2.22.2.32.3.102.3.112.3.122.3.142.3.22.3.32.3.4 |
2.3.15 |
rhcRed Hat:openshift:1::el6 |
before 0:1.3.2-1.3.el6op | 0:1.3.2-1.3.el6op |
libmongodbRed Hat:openshift:1::el6 |
before 0:2.0.2-6.el6op | 0:2.0.2-6.el6op |
mongodbRed Hat:openshift:1::el6 |
before 0:2.0.2-6.el6op | 0:2.0.2-6.el6op |
mongodb-debuginfoRed Hat:openshift:1::el6 |
before 0:2.0.2-6.el6op | 0:2.0.2-6.el6op |
mongodb-develRed Hat:openshift:1::el6 |
before 0:2.0.2-6.el6op | 0:2.0.2-6.el6op |
mongodb-serverRed Hat:openshift:1::el6 |
before 0:2.0.2-6.el6op | 0:2.0.2-6.el6op |
openshift-consoleRed Hat:openshift:1::el6 |
before 0:0.0.13-2.el6op | 0:0.0.13-2.el6op |
openshift-origin-brokerRed Hat:openshift:1::el6 |
before 0:1.0.10-1.el6op | 0:1.0.10-1.el6op |
openshift-origin-broker-utilRed Hat:openshift:1::el6 |
before 0:1.0.14-1.el6op | 0:1.0.14-1.el6op |
ruby193-mod_passengerRed Hat:openshift:1::el6 |
before 0:3.0.12-21.el6op | 0:3.0.12-21.el6op |
ruby193-rubygem-activerecordRed Hat:openshift:1::el6 |
before 1:3.2.8-2.el6 | 1:3.2.8-2.el6 |
ruby193-rubygem-activerecord-docRed Hat:openshift:1::el6 |
before 1:3.2.8-2.el6 | 1:3.2.8-2.el6 |
ruby193-rubygem-passengerRed Hat:openshift:1::el6 |
before 0:3.0.12-21.el6op | 0:3.0.12-21.el6op |
ruby193-rubygem-passenger-debuginfoRed Hat:openshift:1::el6 |
before 0:3.0.12-21.el6op | 0:3.0.12-21.el6op |
ruby193-rubygem-passenger-develRed Hat:openshift:1::el6 |
before 0:3.0.12-21.el6op | 0:3.0.12-21.el6op |
ruby193-rubygem-passenger-docRed Hat:openshift:1::el6 |
before 0:3.0.12-21.el6op | 0:3.0.12-21.el6op |
ruby193-rubygem-passenger-nativeRed Hat:openshift:1::el6 |
before 0:3.0.12-21.el6op | 0:3.0.12-21.el6op |
ruby193-rubygem-passenger-native-libsRed Hat:openshift:1::el6 |
before 0:3.0.12-21.el6op | 0:3.0.12-21.el6op |
rubygem-activerecordRed Hat:openshift:1::el6 |
before 1:3.0.13-3.el6op | 1:3.0.13-3.el6op |
rubygem-openshift-origin-auth-remote-userRed Hat:openshift:1::el6 |
before 0:1.0.4-2.el6op | 0:1.0.4-2.el6op |
rubygem-openshift-origin-commonRed Hat:openshift:1::el6 |
before 0:1.0.2-1.el6op | 0:1.0.2-1.el6op |
rubygem-openshift-origin-consoleRed Hat:openshift:1::el6 |
before 0:1.0.6-1.el6op | 0:1.0.6-1.el6op |
rubygem-openshift-origin-console-docRed Hat:openshift:1::el6 |
before 0:1.0.6-1.el6op | 0:1.0.6-1.el6op |
rubygem-openshift-origin-controllerRed Hat:openshift:1::el6 |
before 0:1.0.11-1.el6op | 0:1.0.11-1.el6op |
rubygem-openshift-origin-dns-bindRed Hat:openshift:1::el6 |
before 0:1.0.2-1.el6op | 0:1.0.2-1.el6op |
rubygem-openshift-origin-msg-broker-mcollectiveRed Hat:openshift:1::el6 |
before 0:1.0.4-1.el6op | 0:1.0.4-1.el6op |
jenkinsRed Hat:openshift:1::el6 |
before 0:1.498-1.1.el6op | 0:1.498-1.1.el6op |
openshift-origin-cartridge-haproxy-1.4Red Hat:openshift:1::el6 |
before 0:1.0.3-1.el6op | 0:1.0.3-1.el6op |
openshift-origin-cartridge-ruby-1.8Red Hat:openshift:1::el6 |
before 0:1.0.5-1.el6op | 0:1.0.5-1.el6op |
openshift-origin-cartridge-ruby-1.9-sclRed Hat:openshift:1::el6 |
before 0:1.0.5-1.el6op | 0:1.0.5-1.el6op |
openshift-origin-msg-node-mcollectiveRed Hat:openshift:1::el6 |
before 0:1.0.2-1.el6op | 0:1.0.2-1.el6op |
openshift-origin-node-utilRed Hat:openshift:1::el6 |
before 0:1.0.7-1.el6op | 0:1.0.7-1.el6op |
openshift-origin-port-proxyRed Hat:openshift:1::el6 |
before 0:1.0.3-1.el6op | 0:1.0.3-1.el6op |
rubygem-openshift-origin-nodeRed Hat:openshift:1::el6 |
before 0:1.0.10-6.el6op | 0:1.0.10-6.el6op |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | affected | |
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
bugzilla.redhat.com/show_bug.cgi?id=889649
rhn.redhat.com/errata/RHSA-2013-0155.html
blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts
rhn.redhat.com/errata/RHSA-2013-0220.html
security.gentoo.org/glsa/glsa-201401-22.xml
rhn.redhat.com/errata/RHSA-2013-0154.html
Show 78 moreShow less
groups.google.com/group/rubyonrails-security/msg/23daa048baf28b64?dmode=source&output=gplain
securityfocus.com/bid/57084
rhn.redhat.com/errata/RHSA-2013-0544.html
nvd.nist.gov/vuln/detail/CVE-2012-6496
github.com/rails/rails/commit/9de9b359d0d24f70f0f6c5c58a7ad8750684d456
github.com/advisories/GHSA-gh2w-j7cx-2664
security-tracker.debian.org/tracker/CVE-2012-6496
github.com/rails/rails
access.redhat.com/errata/RHSA-2013:0220
access.redhat.com/security/updates/classification
wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2013-01-04
access.redhat.com/knowledge/docs
bugzilla.redhat.com/show_bug.cgi?id=855264
bugzilla.redhat.com/show_bug.cgi?id=864921
bugzilla.redhat.com/show_bug.cgi?id=872415
bugzilla.redhat.com/show_bug.cgi?id=873765
bugzilla.redhat.com/show_bug.cgi?id=873768
bugzilla.redhat.com/show_bug.cgi?id=874511
bugzilla.redhat.com/show_bug.cgi?id=874750
bugzilla.redhat.com/show_bug.cgi?id=874751
bugzilla.redhat.com/show_bug.cgi?id=874757
bugzilla.redhat.com/show_bug.cgi?id=874799
bugzilla.redhat.com/show_bug.cgi?id=874845
bugzilla.redhat.com/show_bug.cgi?id=875657
bugzilla.redhat.com/show_bug.cgi?id=876324
bugzilla.redhat.com/show_bug.cgi?id=876465
bugzilla.redhat.com/show_bug.cgi?id=876644
bugzilla.redhat.com/show_bug.cgi?id=876937
bugzilla.redhat.com/show_bug.cgi?id=876939
bugzilla.redhat.com/show_bug.cgi?id=877158
bugzilla.redhat.com/show_bug.cgi?id=877407
bugzilla.redhat.com/show_bug.cgi?id=883527
bugzilla.redhat.com/show_bug.cgi?id=885587
bugzilla.redhat.com/show_bug.cgi?id=885598
bugzilla.redhat.com/show_bug.cgi?id=886159
bugzilla.redhat.com/show_bug.cgi?id=888043
bugzilla.redhat.com/show_bug.cgi?id=888056
bugzilla.redhat.com/show_bug.cgi?id=888671
bugzilla.redhat.com/show_bug.cgi?id=889062
bugzilla.redhat.com/show_bug.cgi?id=889088
bugzilla.redhat.com/show_bug.cgi?id=889095
bugzilla.redhat.com/show_bug.cgi?id=889125
bugzilla.redhat.com/show_bug.cgi?id=890607
bugzilla.redhat.com/show_bug.cgi?id=890608
bugzilla.redhat.com/show_bug.cgi?id=890612
bugzilla.redhat.com/show_bug.cgi?id=892781
bugzilla.redhat.com/show_bug.cgi?id=892795
bugzilla.redhat.com/show_bug.cgi?id=892990
bugzilla.redhat.com/show_bug.cgi?id=893288
bugzilla.redhat.com/show_bug.cgi?id=893307
bugzilla.redhat.com/show_bug.cgi?id=893895
bugzilla.redhat.com/show_bug.cgi?id=896406
security.access.redhat.com/data/csaf/v2/advisories/2013/rhsa-2013_0220.json
access.redhat.com/security/cve/CVE-2012-5658
cve.org/CVERecord?id=CVE-2012-5658
nvd.nist.gov/vuln/detail/CVE-2012-5658
access.redhat.com/security/cve/CVE-2012-6072
cve.org/CVERecord?id=CVE-2012-6072
nvd.nist.gov/vuln/detail/CVE-2012-6072
access.redhat.com/security/cve/CVE-2012-6073
cve.org/CVERecord?id=CVE-2012-6073
nvd.nist.gov/vuln/detail/CVE-2012-6073
access.redhat.com/security/cve/CVE-2012-6074
cve.org/CVERecord?id=CVE-2012-6074
nvd.nist.gov/vuln/detail/CVE-2012-6074
access.redhat.com/security/cve/CVE-2012-6496
cve.org/CVERecord?id=CVE-2012-6496
phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html
access.redhat.com/security/cve/CVE-2013-0158
cve.org/CVERecord?id=CVE-2013-0158
nvd.nist.gov/vuln/detail/CVE-2013-0158
access.redhat.com/security/cve/CVE-2013-0164
cve.org/CVERecord?id=CVE-2013-0164
nvd.nist.gov/vuln/detail/CVE-2013-0164
ubuntu.com/security/CVE-2012-6496
openwall.com/lists/oss-security/2013/01/03/5
groups.google.com/forum
openwall.com/lists/oss-security/2013/01/03/12
Left out here: 7 versions. The JSON record has them.