CVE-2012-2660: Actionpack Action Pack Contains Database-query Restrictions Vulnerability
MODERATECVE-2012-2660 is a MODERATE action pack contains database-query restrictions vulnerability (CWE-284: Improper Access Control) affecting Actionpack libraries in the RubyGems ecosystem. The issue involves action pack contains database-query restrictions bypass. Remediation is available by upgrading affected packages to version 3.0.13, 3.1.5, 3.2.4, 2.3.16.
CVE-2012-2660 at a Glance
How to Fix CVE-2012-2660
To remediate this vulnerability, upgrade all affected Actionpack dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade actionpack to 3.0.13
Upgrade actionpack to 3.1.5
Upgrade actionpack to 3.2.4
Upgrade actionpack to 2.3.16
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for actionpack
How to Check if You Are Affected
To determine whether your application is affected by CVE-2012-2660, inspect your project dependencies for Actionpack:
inspect dependencies for actionpack
Analyze the terminal output to locate any version of Actionpack in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.13), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Actionpack, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2012-2660 Affected Actionpack Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
actionpack
|
RubyGems |
≥ 3.0.0.beta
< 3.0.13
|
3.0.13
|
|
actionpack
|
RubyGems |
≥ 3.1.0
< 3.1.5
|
3.1.5
|
|
actionpack
|
RubyGems |
≥ 3.2.0
< 3.2.4
|
3.2.4
|
|
actionpack
|
RubyGems |
< 2.3.16
|
2.3.16
|
References
Frequently Asked Questions
What is CVE-2012-2660?
Which Actionpack versions are affected?
What version fixes CVE-2012-2660?
Is actionpack affected?
What CWE is associated with CVE-2012-2660?
How can I check RubyGems dependencies for CVE-2012-2660?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hgpp-pp89-4fgf",
"modified" : "2025-01-22T15:18:25Z",
"published" : "2017-10-24T18:33:38Z",
"aliases" : [ "CVE-2012-2660" ],
"summary" : "Action Pack contains database-query restrictions bypass",
"details" : "`actionpack/lib/action_dispatch/http/request.rb` in Ruby on Rails before 2.3.16, 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 consider differences in parameter handling between the Active Record component and the Rack interface, which allows remote attackers to bypass intended database-query restrictions and perform NULL checks via a crafted request, as demonstrated by certain `[nil]` values, a related issue to CVE-2012-2694.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0.beta"
}, {
"fixed" : "3.0.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.2.0"
}, {
"fixed" : "3.2.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.3.16"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-2660"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/61eed87ce32caf534bf1f52dd8134097b4ad9e1b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2012-2660.yml"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2012-2660.yml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/rubyonrails-security/c/8SA-M3as7A8/m/Mr9fi9X4kNgJ"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/group/rubyonrails-security/msg/d890f8d58b5fbf32?dmode=source&output=gplain"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00002.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00014.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00016.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2012-08/msg00017.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2012-08/msg00046.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2013-0154.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:40:14Z",
"nvd_published_at" : "2012-06-22T14:55:01Z"
}
}