CVE-2012-6497

critical

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.

References

https://github.com/advisories/GHSA-rx7j-mw4c-76g9

https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-5249

http://www.securityfocus.com/bid/57084

http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html

http://openwall.com/lists/oss-security/2013/01/03/12

http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts/

Details

Source: Mitre, NVD

Published: 2013-01-04

Updated: 2026-06-16

Risk Information

CVSS v2

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

Severity: Medium

CVSS v3

Base Score: 9.8

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity: Critical

EPSS

EPSS: 0.02737