CVE-2014-3514: Activerecord Active Record Subject To Strong Vulnerability
HIGHCVE-2014-3514 is a HIGH active record subject to strong vulnerability (CWE-284: Improper Access Control) affecting Activerecord libraries in the RubyGems ecosystem. The issue involves active record subject to strong parameters protection bypass. Remediation is available by upgrading affected packages to version 4.0.9, 4.1.5.
CVE-2014-3514 at a Glance
How to Fix CVE-2014-3514
To remediate this vulnerability, upgrade all affected Activerecord 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 activerecord to 4.0.9
Upgrade activerecord to 4.1.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for activerecord
How to Check if You Are Affected
To determine whether your application is affected by CVE-2014-3514, inspect your project dependencies for Activerecord:
inspect dependencies for activerecord
Analyze the terminal output to locate any version of Activerecord in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.9), 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 Activerecord, 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-2014-3514 Affected Activerecord Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
activerecord
|
RubyGems |
≥ 4.0.0
< 4.0.9
|
4.0.9
|
|
activerecord
|
RubyGems |
≥ 4.1.0
< 4.1.5
|
4.1.5
|
References
Frequently Asked Questions
What is CVE-2014-3514?
Which Activerecord versions are affected?
What version fixes CVE-2014-3514?
Is activerecord affected?
What CWE is associated with CVE-2014-3514?
How can I check RubyGems dependencies for CVE-2014-3514?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9rf5-jm6f-2fmm",
"modified" : "2023-08-25T22:56:38Z",
"published" : "2017-10-24T18:33:36Z",
"aliases" : [ "CVE-2014-3514" ],
"summary" : "Active Record subject to strong parameters protection bypass",
"details" : "`activerecord/lib/active_record/relation/query_methods.rb` in Active Record in Ruby on Rails 4.0.x before 4.0.9 and 4.1.x before 4.1.5 allows remote attackers to bypass the strong parameters protection mechanism via crafted input to an application that makes `create_with` calls.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activerecord"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activerecord"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0"
}, {
"fixed" : "4.1.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-3514"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2014-3514.yml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/forum/#!msg/rubyonrails-security/M4chq5Sb540/CC1Fh0Y_NWwJ"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/forum/message/raw?msg=rubyonrails-security/M4chq5Sb540/CC1Fh0Y_NWwJ"
}, {
"type" : "WEB",
"url" : "http://openwall.com/lists/oss-security/2014/08/18/10"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2014-1102.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:29:34Z",
"nvd_published_at" : "2014-08-20T11:17:14Z"
}
}