{"id":"CVE-2012-6497","aliases":["DEBIAN-CVE-2012-6497","DSA-2597-1","EUVD-2022-5249","GHSA-rx7j-mw4c-76g9"],"status":"published","title":"Authlogic Information Exposure vulnerability","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.","severity":{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02737,"percentile":0.86216,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-200","CWE-89"],"published":"2013-01-04T00:00:00Z","modified":"2026-10-23T17:47:47Z","fixes":[{"ecosystem":"RubyGems","package":"authlogic","fixed_in":["3.3.0"],"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":"authlogic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.0"}]}]},{"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":"authlogic","ranges":[{"type":"ECOSYSTEM","events":[{"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"]}],"products":[{"vendor":"rubyonrails","product":"rails"}],"references":[{"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","Exploit","evidence"]},{"url":"http://openwall.com/lists/oss-security/2013/01/03/12","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","article","web"]},{"url":"http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html","tags":["x_refsource_MISC","x_transferred","Broken Link","Exploit","article","evidence"]},{"url":"http://www.securityfocus.com/bid/57084","tags":["vdb-entry","x_refsource_BID","x_transferred","Broken Link","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-6497","tags":["advisory"]},{"url":"https://github.com/binarylogic/authlogic/pull/341","tags":["web"]},{"url":"https://github.com/binarylogic/authlogic/commit/1d57a6c4abe43a3c0b4ef578486ea00e1f7a9873","tags":["web"]},{"url":"https://web.archive.org/web/20130104161608/http://www.securityfocus.com/bid/57084","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","tags":["web"]},{"url":"https://github.com/advisories/GHSA-rx7j-mw4c-76g9"},{"url":"https://security-tracker.debian.org/tracker/CVE-2012-6497","tags":["advisory"]},{"url":"https://github.com/binarylogic/authlogic","tags":["package"]},{"url":"http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2012-6497","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.","status":"published","published":"2013-01-04T02:00:00Z","modified":"2024-08-06T21:28:39.841Z","updated_at":"2026-11-02T14:34:51.269982Z"}],"euvd":[{"id":"EUVD-2022-5249","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.","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-rx7j-mw4c-76g9","title":"Authlogic Information Exposure vulnerability","description":"The Authlogic gem for Ruby on Rails prior to version 3.3.0 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.","status":"published","published":"2022-05-14T00:54:20Z","modified":"2023-01-26T23:55:19Z","cwes":["CWE-200"],"updated_at":"2026-11-02T14:36:14.825433Z"}],"nvd":[{"id":"CVE-2012-6497","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.","status":"published","published":"2013-01-04T04:46:02.993Z","modified":"2026-06-16T23:48:14.36Z","cvss":[{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:02:16.958223Z"}],"osv":[{"id":"CVE-2012-6497","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.","status":"published","published":"2013-01-04T04:46:02Z","modified":"2026-04-10T03:42:35.555074Z","updated_at":"2026-11-02T15:43:58.802805Z"},{"id":"DEBIAN-CVE-2012-6497","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.","status":"published","published":"2013-01-04T04:46:02.993Z","modified":"2026-10-23T17:47:47.428842035Z","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-rx7j-mw4c-76g9","title":"Authlogic Information Exposure vulnerability","description":"The Authlogic gem for Ruby on Rails prior to version 3.3.0 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.","status":"published","published":"2022-05-14T00:54:20Z","modified":"2024-12-05T06:06:38.300231Z","cwes":["CWE-200"],"updated_at":"2026-11-02T15:46:56.639206Z"}]}}
