rubygem-activerecord: SQL injection when processing nested query paramaters
Published Jun 22, 2012
5.0
MEDIUMCVSS 2.0
EPSS 4.09%
Description
The Active Record component in Ruby on Rails 3.0.x before 3.0.13, 3.1.x before 3.1.5, and 3.2.x before 3.2.4 does not properly implement the passing of request data to a where method in an ActiveRecord class, which allows remote attackers to conduct certain SQL injection attacks via nested query parameters that leverage unintended recursion, a related issue to CVE-2012-2695.
Affected products
No data.
Configuration 1
- 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.4
Configuration 2
- 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
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
No data.
CloudForms for RHEL 6
converge-ui-devel-0:1.0.4-1.el6cf
Fixed · RHSA-2012:1542
CloudForms for RHEL 6
puppet-0:2.6.17-2.el6cf
Fixed · RHSA-2012:1542
CloudForms for RHEL 6
rubygem-actionpack-1:3.0.10-10.el6cf
Fixed · RHSA-2012:1542
CloudForms for RHEL 6
rubygem-activerecord-1:3.0.10-6.el6cf
Fixed · RHSA-2012:1542
CloudForms for RHEL 6
rubygem-activesupport-1:3.0.10-4.el6cf
Fixed · RHSA-2012:1542
CloudForms for RHEL 6
rubygem-chunky_png-0:1.2.0-3.el6cf
Fixed · RHSA-2012:1542
CloudForms for RHEL 6
rubygem-compass-0:0.11.5-2.el6cf
Fixed · RHSA-2012:1542
CloudForms for RHEL 6
rubygem-compass-960-plugin-0:0.10.4-2.el6cf
Fixed · RHSA-2012:1542
CloudForms for RHEL 6
rubygem-delayed_job-0:2.1.4-2.el6cf
Fixed · RHSA-2012:1542
CloudForms for RHEL 6
rubygem-ldap_fluff-0:0.1.3-1.el6_3
Fixed · RHSA-2012:1542
CloudForms for RHEL 6
rubygem-mail-0:2.3.0-3.el6cf
Fixed · RHSA-2012:1542
CloudForms for RHEL 6
rubygem-net-ldap-0:0.1.1-3.el6cf
Fixed · RHSA-2012:1542
RHEL 6 Version of OpenShift Enterprise
graphviz-0:2.26.0-10.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-console-0:0.0.16-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-broker-0:1.0.11-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-broker-util-0:1.0.15-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-cron-1.4-0:1.0.3-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-diy-0.1-0:1.0.3-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-haproxy-1.4-0:1.0.4-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-jbosseap-6.0-0:1.0.4-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-jbossews-1.0-0:1.0.13-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-jenkins-1.4-0:1.0.2-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-jenkins-client-1.4-0:1.0.2-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-mysql-5.1-0:1.0.5-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-perl-5.10-0:1.0.3-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-php-5.3-0:1.0.5-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-postgresql-8.4-0:1.0.3-2.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-ruby-1.8-0:1.0.7-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-cartridge-ruby-1.9-scl-0:1.0.8-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
openshift-origin-msg-node-mcollective-0:1.0.3-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
php-0:5.3.3-22.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
ruby193-ruby-0:1.9.3.327-25.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
ruby193-rubygem-actionpack-1:3.2.8-3.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
ruby193-rubygem-activemodel-0:3.2.8-2.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
ruby193-rubygem-activerecord-1:3.2.8-3.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
ruby193-rubygem-railties-0:3.2.8-2.el6
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
ruby193-rubygem-ruby_parser-0:2.3.1-3.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-actionpack-1:3.0.13-4.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-activemodel-0:3.0.13-3.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-activerecord-1:3.0.13-5.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-bson-0:1.8.1-2.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-mongo-0:1.8.1-2.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-auth-remote-user-0:1.0.5-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-console-0:1.0.10-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-controller-0:1.0.12-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-openshift-origin-node-0:1.0.11-1.el6op
Fixed · RHSA-2013:0582
RHEL 6 Version of OpenShift Enterprise
rubygem-ruby_parser-0:2.0.4-6.el6op
Fixed · RHSA-2013:0582
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
| Product | Package | State | Advisory |
|---|---|---|---|
| CloudForms for RHEL 6 | converge-ui-devel-0:1.0.4-1.el6cf | Fixed | RHSA-2012:1542 |
| CloudForms for RHEL 6 | puppet-0:2.6.17-2.el6cf | Fixed | RHSA-2012:1542 |
| CloudForms for RHEL 6 | rubygem-actionpack-1:3.0.10-10.el6cf | Fixed | RHSA-2012:1542 |
| CloudForms for RHEL 6 | rubygem-activerecord-1:3.0.10-6.el6cf | Fixed | RHSA-2012:1542 |
| CloudForms for RHEL 6 | rubygem-activesupport-1:3.0.10-4.el6cf | Fixed | RHSA-2012:1542 |
| CloudForms for RHEL 6 | rubygem-chunky_png-0:1.2.0-3.el6cf | Fixed | RHSA-2012:1542 |
| CloudForms for RHEL 6 | rubygem-compass-0:0.11.5-2.el6cf | Fixed | RHSA-2012:1542 |
| CloudForms for RHEL 6 | rubygem-compass-960-plugin-0:0.10.4-2.el6cf | Fixed | RHSA-2012:1542 |
| CloudForms for RHEL 6 | rubygem-delayed_job-0:2.1.4-2.el6cf | Fixed | RHSA-2012:1542 |
| CloudForms for RHEL 6 | rubygem-ldap_fluff-0:0.1.3-1.el6_3 | Fixed | RHSA-2012:1542 |
| CloudForms for RHEL 6 | rubygem-mail-0:2.3.0-3.el6cf | Fixed | RHSA-2012:1542 |
| CloudForms for RHEL 6 | rubygem-net-ldap-0:0.1.1-3.el6cf | Fixed | RHSA-2012:1542 |
| RHEL 6 Version of OpenShift Enterprise | graphviz-0:2.26.0-10.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-console-0:0.0.16-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-broker-0:1.0.11-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-broker-util-0:1.0.15-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-cron-1.4-0:1.0.3-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-diy-0.1-0:1.0.3-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-haproxy-1.4-0:1.0.4-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-jbosseap-6.0-0:1.0.4-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-jbossews-1.0-0:1.0.13-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-jenkins-1.4-0:1.0.2-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-jenkins-client-1.4-0:1.0.2-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-mysql-5.1-0:1.0.5-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-perl-5.10-0:1.0.3-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-php-5.3-0:1.0.5-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-postgresql-8.4-0:1.0.3-2.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-ruby-1.8-0:1.0.7-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-cartridge-ruby-1.9-scl-0:1.0.8-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | openshift-origin-msg-node-mcollective-0:1.0.3-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | php-0:5.3.3-22.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-ruby-0:1.9.3.327-25.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-actionpack-1:3.2.8-3.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-activemodel-0:3.2.8-2.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-activerecord-1:3.2.8-3.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-railties-0:3.2.8-2.el6 | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | ruby193-rubygem-ruby_parser-0:2.3.1-3.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-actionpack-1:3.0.13-4.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-activemodel-0:3.0.13-3.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-activerecord-1:3.0.13-5.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-bson-0:1.8.1-2.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-mongo-0:1.8.1-2.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-auth-remote-user-0:1.0.5-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-console-0:1.0.10-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-controller-0:1.0.12-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-openshift-origin-node-0:1.0.11-1.el6op | Fixed | RHSA-2013:0582 |
| RHEL 6 Version of OpenShift Enterprise | rubygem-ruby_parser-0:2.0.4-6.el6op | Fixed | RHSA-2013:0582 |
| 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 |
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:N/A:N
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 (21 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.09% (0.04088) | 90.41th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.14% (0.04140) | 89.50th | v5 (v2026.06.15) |
| Nov 7, 2025 | 1.43% (0.01431) | 80.03th | v4 (v2025.03.14) |
| Jun 5, 2025 | 2.51% (0.02508) | 84.59th | v4 (v2025.03.14) |
| Mar 30, 2025 | 0.80% (0.00798) | 71.80th | v4 (v2025.03.14) |
| Mar 29, 2025 | 24.13% (0.24128) | 93.65th | v4 (v2025.03.14) |
| Mar 28, 2025 | 0.80% (0.00798) | 71.80th | v4 (v2025.03.14) |
| Mar 27, 2025 | 24.13% (0.24128) | 95.32th | v4 (v2025.03.14) |
| Mar 20, 2025 | 8.25% (0.08255) | 91.53th | v4 (v2025.03.14) |
| Mar 19, 2025 | 24.13% (0.24128) | 95.40th | v4 (v2025.03.14) |
| Mar 17, 2025 | 8.25% (0.08255) | 91.61th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.11% (0.00106) | 44.83th | v3 (v2023.03.01) |
| Jul 11, 2024 | 0.11% (0.00106) | 43.58th | v3 (v2023.03.01) |
| Mar 23, 2024 | 0.14% (0.00136) | 48.10th | v3 (v2023.03.01) |
| Nov 18, 2023 | 0.19% (0.00193) | 56.99th | v3 (v2023.03.01) |
| Mar 10, 2023 | 0.20% (0.00200) | 56.11th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.49% (0.00489) | 72.38th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.21% (0.01213) | 66.61th | v2 (v2022.01.01) |
| Feb 17, 2023 | 1.21% (0.01213) | 66.22th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.21% (0.01213) | 64.21th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.21% (0.01213) | 40.54th | v2 (v2022.01.01) |
References (10)
- http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00014.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00016.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-updates/2012-08/msg00046.html vendor-advisoryx_refsource_SUSE
- http://rhn.redhat.com/errata/RHSA-2013-0154.html vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2012-2661 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=827363 Issue Tracking
- https://github.com/advisories/GHSA-fh39-v733-mxfr Advisory
- https://groups.google.com/group/rubyonrails-security/msg/fc2da6c627fc92df?dmode=source&output=gplain mailing-listx_refsource_MLISTExploit
- https://nvd.nist.gov/vuln/detail/CVE-2012-2661
- https://www.cve.org/CVERecord?id=CVE-2012-2661
| Link | Providers | Tags |
|---|---|---|
| http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00014.html | vendor-advisoryx_refsource_SUSE | |
| http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00016.html | vendor-advisoryx_refsource_SUSE | |
| http://lists.opensuse.org/opensuse-updates/2012-08/msg00046.html | vendor-advisoryx_refsource_SUSE | |
| http://rhn.redhat.com/errata/RHSA-2013-0154.html | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/security/cve/CVE-2012-2661 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=827363 | Issue Tracking | |
| https://github.com/advisories/GHSA-fh39-v733-mxfr | Advisory | |
| https://groups.google.com/group/rubyonrails-security/msg/fc2da6c627fc92df?dmode=source&output=gplain | mailing-listx_refsource_MLISTExploit | |
| https://nvd.nist.gov/vuln/detail/CVE-2012-2661 | ||
| https://www.cve.org/CVERecord?id=CVE-2012-2661 |
Change history (0)
No recorded changes yet.