CVE-2012-6497
MEDIUM 5.0CVSS 2.0Authlogic Information Exposure vulnerability
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.
- Published
- 4 Jan 2013
- Last modified
- 16 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-200CWE-89
- Also known as
- GHSA-rx7j-mw4c-76g9
- Sources
- NVDJSONOSV GHSA-rx7j-mw4c-76g9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* |
< 3.2.10 | 3.2.10 |
| OSV | RubyGems | authlogic | < 3.3.0 | 3.3.0 |
References
- http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/ · Exploit, WEB
- http://openwall.com/lists/oss-security/2013/01/03/12 · Mailing List, Third Party Advisory, WEB
- http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html · Broken Link, Exploit
- http://www.securityfocus.com/bid/57084 · Broken Link, Third Party Advisory, VDB Entry
- https://nvd.nist.gov/vuln/detail/CVE-2012-6497 · ADVISORY
- https://github.com/binarylogic/authlogic/pull/341 · WEB
- https://github.com/binarylogic/authlogic/commit/1d57a6c4abe43a3c0b4ef578486ea00e1f7a9873 · WEB
- https://github.com/binarylogic/authlogic · PACKAGE
- https://web.archive.org/web/20130104161608/http://www.securityfocus.com/bid/57084 · WEB
- https://web.archive.org/web/20130116043311/http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html · WEB
History
- 25 Nov 2026 20:17 UTC · NVD: first stored (published 4 Jan 2013)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 May 2022)