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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 2.3.14.1 |
| debian | bullseye | fixed | 2.3.14.1 |
| debian | forky | fixed | 2.3.14.1 |
| debian | sid | fixed | 2.3.14.1 |
| debian | trixie | fixed | 2.3.14.1 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| rubyonrails | rails | {"endExcluding":"3.2.10"} | 3.2.10 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2012-6497
- 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
- https://github.com/binarylogic/authlogic/pull/341
- https://github.com/binarylogic/authlogic/commit/1d57a6c4abe43a3c0b4ef578486ea00e1f7a9873
- https://github.com/binarylogic/authlogic
- https://web.archive.org/web/20130104161608/http://www.securityfocus.com/bid/57084
- https://web.archive.org/web/20130116043311/http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html
- http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts
- https://security-tracker.debian.org/tracker/CVE-2012-6497
CWEs
CWE-89
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.