{"id":"UBUNTU-CVE-2012-6496","details":"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.","modified":"2025-07-16T07:31:04.702476Z","published":"2013-01-04T04:46:00Z","withdrawn":"2025-07-18T16:42:48Z","upstream":["CVE-2012-6496"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2012-6496"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2013/01/03/5"},{"type":"REPORT","url":"http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts"},{"type":"REPORT","url":"https://groups.google.com/forum/#!topic/rubyonrails-security/DCNTNp_qjFM"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2013/01/03/12"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2012-6496"}],"affected":[{"package":{"name":"ruby-activerecord-3.2","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/ruby-activerecord-3.2@3.2.16-1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.16-1"}]}],"versions":["3.2.13-4"],"ecosystem_specific":{"binaries":[{"binary_version":"3.2.16-1","binary_name":"ruby-activerecord-3.2"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2012/UBUNTU-CVE-2012-6496.json"}}],"schema_version":"1.7.3","severity":[{"type":"Ubuntu","score":"medium"}]}