CVE-2012-6497Rubyonrails Rails
Medium 5.0 No auth needed
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- Priority
- 45
- CVSS 2.0
- 5.0
- EPSS
- 2.7% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Jan 4, 2013
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- Vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
What happens
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
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | authlogic |
< 3.3.0 |
3.3.0 |
gem "authlogic", ">= 3.3.0" |
Per OSV / GitHub Advisories (GHSA-rx7j-mw4c-76g9). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | < 3.2.10 |
Official sources
References
Links published by the sources. Open them with care.
- blog.phusion.nl Exploit
- openwall.com Mailing List Third Party Advisory
- phenoelit.org Broken Link Exploit
- www.securityfocus.com Broken Link Third Party Advisory VDB Entry