What’s Vulnerable › Vulnerabilities
CVE-2012-6497
- Severity: medium (CVSS 5.0 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2013-01-04 · updated 2026-06-16
- Weakness: CWE-89
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.
Affected products
- Ruby on Rails: before 3.2.10 — fixed in 3.2.10
How to fix
Upgrade to a fixed version: Ruby on Rails 3.2.10. Check the vendor advisory for mitigations.
References
- http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/
- http://openwall.com/lists/oss-security/2013/01/03/12
- http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html
- http://www.securityfocus.com/bid/57084
- http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/
- http://openwall.com/lists/oss-security/2013/01/03/12
- http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html
- http://www.securityfocus.com/bid/57084
Get alerted when CVE-2012-6497 or the next vulnerability affects your stack