Live threats

All CVEs / Rubyonrails

CVE-2012-6497Rubyonrails Rails

Medium 5.0 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Rails.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
rubyonrailsrails< 3.2.10

Official sources

References

Links published by the sources. Open them with care.