CVE-2012-6497: SQL Injection

Published Jan 4, 2013
·
Updated

The Authlogic gem for Ruby on Rails, when used with certain versions before 3.2.10, makes potentially unsafe findbyid 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 secrettoken value, as demonstrated by a value contained in secrettoken.rb in an open-source product.

Affected Software

5 affected componentsFixes available
rubyonrails Rails<3.2.10
debian/rails<2.3.14.1
2.3.14.1
debian/rails<2.3.14.1
2.3.14.1
debian/rails<2.3.14.1
2.3.14.1
debian/rails
2:6.1.7.10+dfsg-1~deb12u22:6.1.7.10+dfsg-1~deb12u32:7.2.2.2+dfsg-2~deb13u12:7.2.2.2+dfsg-2~deb13u22:7.2.4+dfsg-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2.3.14.1
  2. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:6.1.7.10+dfsg-1~deb12u2Fixed in 2:6.1.7.10+dfsg-1~deb12u3Fixed in 2:7.2.2.2+dfsg-2~deb13u1Fixed in 2:7.2.2.2+dfsg-2~deb13u2Fixed in 2:7.2.4+dfsg-2
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.2.10

Event History

Jan 4, 2013
CVE Published
via MITRE·02:00 AM
Data Sourced
via MITRE·02:00 AM
Description
Data Sourced
via OSV·04:46 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2012-6497?

CVE-2012-6497 is considered a high severity vulnerability due to its potential for SQL injection attacks.

2

How do I fix CVE-2012-6497?

To fix CVE-2012-6497, upgrade the Authlogic gem or Rails framework to version 3.2.10 or later.

3

What versions of Ruby on Rails are affected by CVE-2012-6497?

CVE-2012-6497 affects Ruby on Rails versions prior to 3.2.10.

4

What kind of attacks can be carried out due to CVE-2012-6497?

CVE-2012-6497 can allow remote attackers to conduct SQL injection attacks via crafted parameters.

5

Is the find_by_id method in Ruby on Rails safe to use with CVE-2012-6497?

The find_by_id method is potentially unsafe in environments with certain configurations and affected versions related to CVE-2012-6497.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203