CVE-2012-6497 json
Authlogic Information Exposure vulnerability
published 2013-01-04 13 y ago modified 2026-06-16 4 mo ago also GHSA-rx7j-mw4c-76g9 , EUVD-2022-5249
- cvss
- 5.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.7%
- EPSS 2.7% chance of exploitation in 30 days, percentile 86%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems authlogic 3.3.0
- rubyonrails rails 3.2.10
- rails Debian 14, Debian 13, Debian 12 2.3.14.1
debian advisories DEBIAN-CVE-2012-6497
- github.com/binarylogic/authlogic@1d57a6c commit
- github.com/binarylogic/authlogic#341 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2012-6497 updated cvss 5.0
rubygem-authlogic: potential unsafe find_by_id method calls
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.74% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- blog.phusion.nl http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/ referenced PoC, tagged "exploit" by a source, unverified
- phenoelit.org http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | authlogic | <3.3.0 |
3.3.0 |
Classification
- Weakness
- Technology feeds
References
-
github.com
/binarylogic/authlogic/pull/341
web
-
github.com
/binarylogic/authlogic/commit/1d57a6c4abe43a3c0b4ef578486ea00e1f7a9873
web
-
blog.phusion.nl
/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/
exploit
-
phenoelit.org
/blog/archives/2012/12/21/let_me_github_that_for_you/index.html
broken-link, exploit
-
openwall.com
/lists/oss-security/2013/01/03/12
mailing-list, web, third-party-advisory
-
securityfocus.com
/bid/57084
vdb-entry, broken-link, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2012-6497
advisory
-
github.com
/binarylogic/authlogic
package
-
web.archive.org
/web/20130104161608/http://www.securityfocus.com/bid/57084
web
-
web.archive.org
/web/20130116043311/http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html
web
-
blog.phusion.nl
/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts
web
Sources
- CVE List CVE-2012-6497
- GitHub Advisory GHSA-rx7j-mw4c-76g9
- NVD CVE-2012-6497
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.