{"schemaVersion":3,"id":"CVE-2012-6497","aliases":["DEBIAN-CVE-2012-6497","GHSA-rx7j-mw4c-76g9"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2013-01-04T02:00:00.000Z","modified":"2024-08-06T21:28:39.841Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5,"severity":"medium","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02737,"percentile":0.85996,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.02737},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02737,"percentile":0.85996}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02737,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02737,"percentile":0.85996}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_B4C4AEF13300525C","name":"Exploit Reference (blog.phusion.nl)","source":"reference","url":"http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_BCECEAB8CFC26423","name":"Exploit Reference (phenoelit.org)","source":"reference","url":"http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"debian","product":"rails","name":"rails","label":"rails","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rails","purlType":"deb","versions":[{"text":"< 2.3.14.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.3.14.1","eol":null,"hubHref":null},{"vendor":"RubyGems","product":"authlogic","name":"authlogic","label":"authlogic","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/authlogic","purlType":"gem","versions":[{"text":"< 3.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.3.0","eol":null,"hubHref":null},{"vendor":"rubyonrails","product":"rails","name":"rails","label":"rails","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.2.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.2.10","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"rails","label":"Ruby on Rails","category":"framework"}},"hubHref":"/vendor/rubyonrails/rails"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/","label":"blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/","hostname":"blog.phusion.nl","tags":["X Refsource MISC","Exploit"]},{"url":"http://openwall.com/lists/oss-security/2013/01/03/12","label":"openwall.com/lists/oss-security/2013/01/03/12","hostname":"openwall.com","tags":["Mailing List","X Refsource MLIST","Third Party Advisory","WEB"]},{"url":"http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html","label":"phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html","hostname":"phenoelit.org","tags":["X Refsource MISC","Broken Link","Exploit"]},{"url":"http://www.securityfocus.com/bid/57084","label":"www.securityfocus.com/bid/57084","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Broken Link","Third Party Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2012-6497","label":"security-tracker.debian.org/tracker/CVE-2012-6497","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-6497","label":"nvd.nist.gov/vuln/detail/CVE-2012-6497","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/binarylogic/authlogic/pull/341","label":"github.com/binarylogic/authlogic/pull/341","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/binarylogic/authlogic/commit/1d57a6c4abe43a3c0b4ef578486ea00e1f7a9873","label":"github.com/binarylogic/authlogic/commit/1d57a6c4abe43a3c0b4ef578486ea00e1f7a9873","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/binarylogic/authlogic","label":"github.com/binarylogic/authlogic","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://web.archive.org/web/20130104161608/http://www.securityfocus.com/bid/57084","label":"web.archive.org/web/20130104161608/http://www.securityfocus.com/bid/57084","hostname":"web.archive.org","tags":["WEB"]},{"url":"https://web.archive.org/web/20130116043311/http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html","label":"web.archive.org/web/…","hostname":"web.archive.org","tags":["WEB"]},{"url":"http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts","label":"blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts","hostname":"blog.phusion.nl","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["DSA-2597-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2013-01-04T02:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T21:28:39.841Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T02:15:22.022Z","stale":false,"partial":false}}