VDB

CVE-2012-6496

CVE-2012-6496 PUBLISHED CVSS 7.5 HIGH

Active Record contains SQL Injection

Reported by mitre · Published January 4, 2013

activerecord is fixed in 3.2.10, 3.1.9, 3.0.18 and 1 more (RubyGems)

SQL injection vulnerability in the Active Record component in Ruby on Rails before 3.0.18, 3.1.x before 3.1.9, and 3.2.x before 3.2.10 allows remote attackers to execute arbitrary SQL commands via a crafted request that leverages incorrect behavior of dynamic finders in applications that can use unexpected data types in certain find_by_ method calls.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
activerecordRubyGems3.2.10, 3.1.9, 3.0.18, 2.3.15
ruby_on_railsrubyonrails3.0.17
ruby-activerecord-3.2Ubuntu:14.04:LTS3.2.16-1

Risk scores

CVSS 2.0
7.5

Affected products

VendorProductVersions
n/an/an/a
RubyGemsactiverecord3.0.0.beta, 3.1.0, 3.2.0
n/an/a*

Timeline

  • Jan 4, 2013 CVE Published
  • Feb 4, 2022 EPSS Score (30 in total, the first dated here)
  • Aug 6, 2024 CVE Updated
  • Mar 17, 2026 Security Advisory (2 in total, the first dated here)
  • Oct 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2012-6496
vulnetix vdb fixes CVE-2012-6496

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2012-6496/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›