rubygem-activerecord: find_by_* SQL Injection
Published Jan 4, 2013
7.5
HIGHCVSS 2.0
EPSS 4.58%
Description
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.
Affected products
No data.
Configuration 1
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.0
- 3.1.1
- 3.1.1
- 3.1.1
- 3.1.1
- 3.1.2
- 3.1.2
- 3.1.2
- 3.1.3
- 3.1.4
- 3.1.4
- 3.1.5
- 3.1.5
- 3.1.6
- 3.1.7
- 3.1.8
Configuration 2
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.0
- 3.0.1
- 3.0.1
- 3.0.2
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.0.5
- 3.0.6
- 3.0.6
- 3.0.6
- 3.0.7
- 3.0.7
- 3.0.7
- 3.0.8
- 3.0.8
- 3.0.8
- 3.0.8
- 3.0.8
- 3.0.9
- 3.0.9
- 3.0.9
- 3.0.9
- 3.0.9
- 3.0.9
- 3.0.10
- 3.0.10
- 3.0.11
- 3.0.12
- 3.0.12
- 3.0.13
- 3.0.13
- 3.0.14
- 3.0.16
- ≤ 3.0.17
- 3.0.4
Configuration 3
- 3.2.0
- 3.2.0
- 3.2.0
- 3.2.1
- 3.2.2
- 3.2.2
- 3.2.3
- 3.2.3
- 3.2.3
- 3.2.4
- 3.2.4
- 3.2.5
- 3.2.6
- 3.2.7
- 3.2.8
- 3.2.9
No data.
CloudForms for RHEL 6
rubygem-actionpack-1:3.0.10-11.el6cf
Fixed · RHSA-2013:0155
CloudForms for RHEL 6
rubygem-activerecord-1:3.0.10-8.el6cf
Fixed · RHSA-2013:0155
CloudForms for RHEL 6
rubygem-activesupport-1:3.0.10-5.el6cf
Fixed · RHSA-2013:0155
RHEL 6 Version of OpenShift Enterprise
jenkins-0:1.498-1.1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
mongodb-0:2.0.2-6.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
openshift-console-0:0.0.13-2.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
openshift-origin-broker-0:1.0.10-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
openshift-origin-broker-util-0:1.0.14-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-haproxy-1.4-0:1.0.3-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-ruby-1.8-0:1.0.5-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-ruby-1.9-scl-0:1.0.5-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
openshift-origin-msg-node-mcollective-0:1.0.2-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
openshift-origin-node-util-0:1.0.7-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
openshift-origin-port-proxy-0:1.0.3-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
rhc-0:1.3.2-1.3.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
ruby193-rubygem-activerecord-1:3.0.13-3.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
ruby193-rubygem-passenger-0:3.0.12-21.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-auth-remote-user-0:1.0.4-2.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-common-0:1.0.2-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-console-0:1.0.6-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-controller-0:1.0.11-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-dns-bind-0:1.0.2-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-msg-broker-mcollective-0:1.0.4-1.el6op
Fixed · RHSA-2013:0220
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-node-0:1.0.10-6.el6op
Fixed · RHSA-2013:0220
Red Hat Subscription Asset Manager 1.1
rubygem-actionpack-1:3.0.10-11.el6cf
Fixed · RHSA-2013:0154
Red Hat Subscription Asset Manager 1.1
rubygem-activerecord-1:3.0.10-8.el6cf
Fixed · RHSA-2013:0154
Red Hat Subscription Asset Manager 1.1
rubygem-activesupport-1:3.0.10-5.el6cf
Fixed · RHSA-2013:0154
OpenShift Enterprise 1
ruby-rubygem-activerecord
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| CloudForms for RHEL 6 | rubygem-actionpack-1:3.0.10-11.el6cf | Fixed | RHSA-2013:0155 |
| CloudForms for RHEL 6 | rubygem-activerecord-1:3.0.10-8.el6cf | Fixed | RHSA-2013:0155 |
| CloudForms for RHEL 6 | rubygem-activesupport-1:3.0.10-5.el6cf | Fixed | RHSA-2013:0155 |
| RHEL 6 Version of OpenShift Enterprise | jenkins-0:1.498-1.1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | mongodb-0:2.0.2-6.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | openshift-console-0:0.0.13-2.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-broker-0:1.0.10-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-broker-util-0:1.0.14-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-haproxy-1.4-0:1.0.3-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-ruby-1.8-0:1.0.5-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-ruby-1.9-scl-0:1.0.5-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-msg-node-mcollective-0:1.0.2-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-node-util-0:1.0.7-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-port-proxy-0:1.0.3-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | rhc-0:1.3.2-1.3.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-activerecord-1:3.0.13-3.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-passenger-0:3.0.12-21.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-auth-remote-user-0:1.0.4-2.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-common-0:1.0.2-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-console-0:1.0.6-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-controller-0:1.0.11-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-dns-bind-0:1.0.2-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-msg-broker-mcollective-0:1.0.4-1.el6op | Fixed | RHSA-2013:0220 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-node-0:1.0.10-6.el6op | Fixed | RHSA-2013:0220 |
| Red Hat Subscription Asset Manager 1.1 | rubygem-actionpack-1:3.0.10-11.el6cf | Fixed | RHSA-2013:0154 |
| Red Hat Subscription Asset Manager 1.1 | rubygem-activerecord-1:3.0.10-8.el6cf | Fixed | RHSA-2013:0154 |
| Red Hat Subscription Asset Manager 1.1 | rubygem-activesupport-1:3.0.10-5.el6cf | Fixed | RHSA-2013:0154 |
| OpenShift Enterprise 1 | ruby-rubygem-activerecord | Affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (15 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.58% (0.04582) | 91.34th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.42% (0.04422) | 90.08th | v5 (v2026.06.15) |
| Jun 5, 2025 | 1.53% (0.01528) | 80.38th | v4 (v2025.03.14) |
| Mar 30, 2025 | 2.87% (0.02868) | 85.04th | v4 (v2025.03.14) |
| Mar 29, 2025 | 4.06% (0.04061) | 80.58th | v4 (v2025.03.14) |
| Mar 27, 2025 | 2.87% (0.02868) | 84.57th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.68% (0.00680) | 69.88th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.44% (0.00436) | 75.55th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.45% (0.00449) | 74.31th | v3 (v2023.03.01) |
| Sep 21, 2023 | 0.45% (0.00449) | 72.05th | v3 (v2023.03.01) |
| Jul 22, 2023 | 0.39% (0.00386) | 69.62th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.37% (0.00369) | 68.26th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.97% (0.01974) | 78.97th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.97% (0.01974) | 77.12th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.97% (0.01974) | 56.20th | v2 (v2022.01.01) |
References (15)
- http://blog.phusion.nl/2013/01/03/rails-sql-injection-vulnerability-hold-your-horses-here-are-the-facts x_refsource_MISC
- http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html
- http://rhn.redhat.com/errata/RHSA-2013-0154.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2013-0155.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2013-0220.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2013-0544.html vendor-advisoryx_refsource_REDHAT
- http://security.gentoo.org/glsa/glsa-201401-22.xml vendor-advisoryx_refsource_GENTOO
- http://www.securityfocus.com/bid/57084 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2012-6496 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=889649 x_refsource_CONFIRMExploitPatchIssue Tracking
- https://github.com/advisories/GHSA-gh2w-j7cx-2664 Advisory
- https://github.com/rails/rails/commit/9de9b359d0d24f70f0f6c5c58a7ad8750684d456
- https://groups.google.com/group/rubyonrails-security/msg/23daa048baf28b64?dmode=source&output=gplain mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2012-6496
- https://www.cve.org/CVERecord?id=CVE-2012-6496
Change history (0)
No recorded changes yet.