Skip to content
Fencer Intel
high 7.5

CVE-2012-6496 json

Active Record contains SQL Injection

published 2013-01-04 13 y ago modified 2026-06-16 4 mo ago also GHSA-gh2w-j7cx-2664 , EUVD-2017-0238

cvss
7.5
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
4.6%
EPSS 4.6% chance of exploitation in 30 days, percentile 91%
public exploits
0
none known

Summary

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.

Patch / fix

  • rubygems activerecord 2.3.15, 3.0.18, 3.1.9, 3.2.10
  • rails Debian 14, Debian 13, Debian 12 2.3.14.1

debian advisories DEBIAN-CVE-2012-6496

  • rhc openshift 1 1.3.2-1.3.el6op
  • jenkins openshift 1 1.498-1.1.el6op
  • mongodb openshift 1 2.0.2-6.el6op
  • libmongodb openshift 1 2.0.2-6.el6op
  • mongodb-server openshift 1 2.0.2-6.el6op
  • openshift-console openshift 1 0.0.13-2.el6op
  • rubygem-activerecord openshift 1 1:3.0.13-3.el6op
  • ruby193-mod_passenger openshift 1 3.0.12-21.el6op

red hat advisories RHSA-2013:0220

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-6496 updated cvss 6.4

rubygem-activerecord: find_by_* SQL Injection

  • Red Hat OpenShift Enterprise 1 ruby-rubygem-activerecord
    affected: no fix available
  • Red Hat CloudForms Cloud Engine for RHEL 6 Server rubygem-actionpack 3.0.10-11.el6cf, rubygem-activerecord 3.0.10-8.el6cf, rubygem-activesupport 3.0.10-5.el6cf Red Hat CloudForms System Engine for RHEL 6 Server rubygem-actionpack 3.0.10-11.el6cf, rubygem-activerecord 3.0.10-8.el6cf, rubygem-activesupport 3.0.10-5.el6cf
    fixed: vendor fix RHSA-2013:0155
  • Red Hat OpenShift Enterprise Client Tools rhc 1.3.2-1.3.el6op Red Hat OpenShift Enterprise Infrastructure mongodb 2.0.2-6.el6op, libmongodb 2.0.2-6.el6op, mongodb-server 2.0.2-6.el6op, openshift-console 0.0.13-2.el6op, rubygem-activerecord 3.0.13-3.el6op, ruby193-mod_passenger 3.0.12-21.el6op, +12 more Red Hat OpenShift Enterprise Node jenkins 1.498-1.1.el6op, ruby193-mod_passenger 3.0.12-21.el6op, openshift-origin-node-util 1.0.7-1.el6op, ruby193-rubygem-activerecord 3.2.8-2.el6, openshift-origin-port-proxy 1.0.3-1.el6op, ruby193-rubygem-passenger 3.0.12-21.el6op, +8 more
    fixed: vendor fix RHSA-2013:0220
  • Red Hat Subscription Asset Manager for RHEL 6 Server rubygem-actionpack 3.0.10-11.el6cf, rubygem-activerecord 3.0.10-8.el6cf, rubygem-activesupport 3.0.10-5.el6cf
    fixed: vendor fix RHSA-2013:0154

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

4.58% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=889649 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected packages

ecosystem package affected fixed in
rubygems activerecord
>=3.0.0.beta, <3.0.18
>=3.1.0, <3.1.9
>=3.2.0, <3.2.10
<2.3.15
3.0.18
3.1.9
3.2.10
2.3.15

Classification

Weakness
  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Technology feeds

References

Sources

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.