{"id":"CVE-2012-6496","aliases":["DEBIAN-CVE-2012-6496","DSA-2597-1","EUVD-2017-0238","GHSA-gh2w-j7cx-2664","RHSA-2013:0220","UBUNTU-CVE-2012-6496"],"status":"published","title":"Active Record contains 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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.04582,"percentile":0.91693,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-89"],"published":"2013-01-04T00:00:00Z","modified":"2026-10-23T17:47:43Z","fixes":[{"ecosystem":"RubyGems","package":"activerecord","fixed_in":["3.1.9","3.2.10","3.0.18","2.3.15"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"rails","fixed_in":["2.3.14.1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"rails","fixed_in":["2.3.14.1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"rails","fixed_in":["2.3.14.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0"},{"fixed":"3.1.9"}]}]},{"source":"ghsa","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.0"},{"fixed":"3.2.10"}]}]},{"source":"ghsa","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0.beta"},{"fixed":"3.0.18"}]}]},{"source":"ghsa","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.15"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.14.1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.14.1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.14.1"}]}]},{"source":"osv","ecosystem":"Debian:6.0","package":"rails","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.5-1.2+squeeze4"}]}],"versions":["2.3.5-1.2","2.3.5-1.2+squeeze0.1","2.3.5-1.2+squeeze1","2.3.5-1.2+squeeze2","2.3.5-1.2+squeeze3"],"bundled":2},{"source":"osv","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0.beta"},{"fixed":"3.0.18"}]}],"versions":["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.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.15","3.0.16","3.0.17","3.0.2","3.0.3","3.0.4","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.rc4","3.0.9","3.0.9.rc1","3.0.9.rc3","3.0.9.rc4","3.0.9.rc5"]},{"source":"osv","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0"},{"fixed":"3.1.9"}]}],"versions":["3.1.0","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"]},{"source":"osv","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.0"},{"fixed":"3.2.10"}]}],"versions":["3.2.0","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.7.rc1","3.2.8","3.2.8.rc1","3.2.8.rc2","3.2.9","3.2.9.rc1","3.2.9.rc2","3.2.9.rc3"]},{"source":"osv","ecosystem":"RubyGems","package":"activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.15"}]}],"versions":["1.0.0","1.1.0","1.10.0","1.10.1","1.11.0","1.11.1","1.12.1","1.12.2","1.13.0","1.13.1","1.13.2","1.14.0","1.14.1","1.14.2","1.14.3","1.14.4","1.15.0","1.15.1","1.15.2","1.15.3","1.15.4","1.15.5","1.15.6","1.2.0","1.3.0","1.4.0","1.5.0","1.5.1","1.6.0","1.7.0","1.8.0","1.9.0","1.9.1","2.0.0","2.0.1","2.0.2","2.0.4","2.0.5","2.1.0","2.1.1","2.1.2","2.2.2","2.2.3","2.3.10","2.3.11","2.3.12","2.3.14","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.3.8.pre1","2.3.9","2.3.9.pre"]},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"rhc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.3.2-1.3.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"libmongodb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.2-6.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"mongodb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.2-6.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"mongodb-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.2-6.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"mongodb-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.2-6.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"mongodb-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.2-6.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"openshift-console","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.0.13-2.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"openshift-origin-broker","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.10-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"openshift-origin-broker-util","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.14-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"ruby193-mod_passenger","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.0.12-21.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"ruby193-rubygem-activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.8-2.el6"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"ruby193-rubygem-activerecord-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.2.8-2.el6"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"ruby193-rubygem-passenger","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.0.12-21.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"ruby193-rubygem-passenger-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.0.12-21.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"ruby193-rubygem-passenger-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.0.12-21.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"ruby193-rubygem-passenger-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.0.12-21.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"ruby193-rubygem-passenger-native","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.0.12-21.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"ruby193-rubygem-passenger-native-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.0.12-21.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"rubygem-activerecord","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.0.13-3.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"rubygem-openshift-origin-auth-remote-user","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.4-2.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"rubygem-openshift-origin-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.2-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"rubygem-openshift-origin-console","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.6-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"rubygem-openshift-origin-console-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.6-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"rubygem-openshift-origin-controller","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.11-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"rubygem-openshift-origin-dns-bind","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.2-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"rubygem-openshift-origin-msg-broker-mcollective","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.4-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"jenkins","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.498-1.1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"openshift-origin-cartridge-haproxy-1.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.3-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"openshift-origin-cartridge-ruby-1.8","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.5-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"openshift-origin-cartridge-ruby-1.9-scl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.5-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"openshift-origin-msg-node-mcollective","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.2-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"openshift-origin-node-util","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.7-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"openshift-origin-port-proxy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.3-1.el6op"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:openshift:1::el6","package":"rubygem-openshift-origin-node","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.0.10-6.el6op"}]}],"bundled":7}],"products":[{"vendor":"rubyonrails","product":"rails"},{"vendor":"rubyonrails","product":"ruby_on_rails"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=889649","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","evidence","fix","web","report"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0155.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory"]},{"url":"http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/","tags":["x_refsource_MISC","x_transferred","article"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0220.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"http://security.gentoo.org/glsa/glsa-201401-22.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","advisory","web"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0154.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://groups.google.com/group/rubyonrails-security/msg/23daa048baf28b64?dmode=source\u0026output=gplain","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/57084","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-0544.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-6496","tags":["advisory"]},{"url":"https://github.com/rails/rails/commit/9de9b359d0d24f70f0f6c5c58a7ad8750684d456","tags":["web"]},{"url":"http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-gh2w-j7cx-2664"},{"url":"https://security-tracker.debian.org/tracker/CVE-2012-6496","tags":["advisory"]},{"url":"https://github.com/rails/rails","tags":["package"]},{"url":"https://access.redhat.com/errata/RHSA-2013:0220","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","tags":["article"]},{"url":"https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2013-01-04","tags":["article"]},{"url":"https://access.redhat.com/knowledge/docs/","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=855264","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=864921","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=872415","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=873765","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=873768","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=874511","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=874750","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=874751","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=874757","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=874799","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=874845","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=875657","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=876324","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=876465","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=876644","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=876937","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=876939","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=877158","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=877407","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=883527","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=885587","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=885598","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=886159","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=888043","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=888056","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=888671","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=889062","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=889088","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=889095","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=889125","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=890607","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=890608","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=890612","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=892781","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=892795","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=892990","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=893288","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=893307","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=893895","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=896406","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2013/rhsa-2013_0220.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2012-5658","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2012-5658","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-5658","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2012-6072","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2012-6072","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-6072","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2012-6073","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2012-6073","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-6073","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2012-6074","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2012-6074","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-6074","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2012-6496","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2012-6496","tags":["advisory","report"]},{"url":"http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2013-0158","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2013-0158","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2013-0158","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2013-0164","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2013-0164","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2013-0164","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2012-6496","tags":["report"]},{"url":"http://www.openwall.com/lists/oss-security/2013/01/03/5","tags":["report"]},{"url":"https://groups.google.com/forum/#!topic/rubyonrails-security/DCNTNp_qjFM","tags":["report"]},{"url":"http://www.openwall.com/lists/oss-security/2013/01/03/12","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2012-6496","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.","status":"published","published":"2013-01-04T02:00:00Z","modified":"2024-08-06T21:28:39.807Z","updated_at":"2026-11-02T14:34:51.269982Z"}],"euvd":[{"id":"EUVD-2017-0238","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.","status":"published","published":"2013-01-04T02:00:00Z","modified":"2024-08-06T21:28:39Z","updated_at":"2026-11-03T01:56:02.409289Z"}],"ghsa":[{"id":"GHSA-gh2w-j7cx-2664","title":"Active Record contains SQL Injection","description":"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.","status":"published","published":"2017-10-24T18:33:37Z","modified":"2025-01-21T16:47:33Z","cwes":["CWE-89"],"updated_at":"2026-11-02T14:38:27.974809Z"}],"nvd":[{"id":"CVE-2012-6496","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.","status":"published","published":"2013-01-04T04:46:02.947Z","modified":"2026-06-16T23:48:14.19Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:02:16.958223Z"}],"osv":[{"id":"CVE-2012-6496","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.","status":"published","published":"2013-01-04T04:46:02Z","modified":"2026-04-10T03:42:34.844427Z","updated_at":"2026-11-02T15:43:58.802805Z"},{"id":"DEBIAN-CVE-2012-6496","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.","status":"published","published":"2013-01-04T04:46:02.947Z","modified":"2026-10-23T17:47:43.454601204Z","updated_at":"2026-11-02T15:45:25.218101Z"},{"id":"DSA-2597-1","title":"rails - input validation error","status":"published","published":"2013-01-04T00:00:00Z","modified":"2026-03-09T01:21:04.260634Z","updated_at":"2026-11-02T15:46:15.489951Z"},{"id":"GHSA-gh2w-j7cx-2664","title":"Active Record contains SQL Injection","description":"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.","status":"published","published":"2017-10-24T18:33:37Z","modified":"2025-01-21T17:08:19.377001Z","cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:47.822182Z"},{"id":"RHSA-2013:0220","title":"Red Hat Security Advisory: Red Hat OpenShift Enterprise 1.1 update","status":"published","published":"2024-09-15T20:30:43Z","modified":"2026-06-28T10:07:21Z","updated_at":"2026-11-02T15:53:01.495018Z"},{"id":"UBUNTU-CVE-2012-6496","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.","status":"withdrawn","published":"2013-01-04T04:46:00Z","modified":"2025-07-16T07:31:04.702476Z","updated_at":"2026-11-02T15:54:06.854805Z"}]}}
