{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2012-6497","published":"2013-01-04T04:46:02.993000Z","last_modified":"2026-06-16T23:48:14.360000Z","status":"Modified","cvss":{"version":"2.0","score":5.0,"severity":"MEDIUM","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-89"],"cpes":[{"criteria":"cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*","part":"a","vendor":"rubyonrails","product":"rails","version_end_excluding":"3.2.10"}],"cpes_truncated":false,"vendors":["rubyonrails"],"products":["rubyonrails/rails"],"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-rx7j-mw4c-76g9","ecosystem":"RubyGems","name":"authlogic","purl":"pkg:gem/authlogic","ranges":[{"introduced":"0","fixed":"3.3.0"}],"versions":["0.10.4","1.0.0","1.1.0","1.1.1","1.1.2","1.2.0","1.2.1","1.2.2","1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.8","1.3.9","1.4.0","1.4.1","1.4.2","1.4.3","2.0.0","2.0.1","2.0.11","2.0.12","2.0.13","2.0.14","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0","2.1.1","2.1.10","2.1.11","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.1.7","2.1.8","3.0.0","3.0.1","3.0.2","3.0.3","3.1.0","3.1.1","3.1.2","3.1.3","3.2.0"]}],"severity":"medium","priority_score":45,"links":{"html_es":"/es/cve/CVE-2012-6497/","html_en":"/en/cve/CVE-2012-6497/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-6497","cve_org":"https://www.cve.org/CVERecord?id=CVE-2012-6497"},"untrusted":{"vendor_name":"Rubyonrails","product_name":"Rails","desc_en":"The Authlogic gem for Ruby on Rails, when used with certain versions before 3.2.10, makes potentially unsafe find_by_id method calls, which might allow remote attackers to conduct CVE-2012-6496 SQL injection attacks via a crafted parameter in environments that have a known secret_token value, as demonstrated by a value contained in secret_token.rb in an open-source product.","affected":[],"references":[{"url":"http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/","tags":["Exploit"]},{"url":"http://openwall.com/lists/oss-security/2013/01/03/12","tags":["Mailing List","Third Party Advisory"]},{"url":"http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html","tags":["Broken Link","Exploit"]},{"url":"http://www.securityfocus.com/bid/57084","tags":["Broken Link","Third Party Advisory","VDB Entry"]}]}}