CVE-2013-0155: Activerecord Active Record Allows Bypassing Of Vulnerability
MODERATECVE-2013-0155 is a MODERATE active record allows bypassing of vulnerability (CWE-284: Improper Access Control) affecting Activerecord libraries in the RubyGems ecosystem. The issue involves active record allows bypassing of database-query restrictions. Remediation is available by upgrading affected packages to version 3.0.19, 3.1.10, 3.2.11.
CVE-2013-0155 at a Glance
How to Fix CVE-2013-0155
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 3.0.19
Upgrade activerecord to 3.1.10
Upgrade activerecord to 3.2.11
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-2013-0155, 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 3.0.19), 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-2013-0155 Affected Activerecord Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
activerecord
|
RubyGems |
≥ 3.0.0
< 3.0.19
|
3.0.19
|
|
activerecord
|
RubyGems |
≥ 3.1.0
< 3.1.10
|
3.1.10
|
|
activerecord
|
RubyGems |
≥ 3.2.0
< 3.2.11
|
3.2.11
|
References
Frequently Asked Questions
What is CVE-2013-0155?
Which Activerecord versions are affected?
What version fixes CVE-2013-0155?
Is activerecord affected?
What CWE is associated with CVE-2013-0155?
How can I check RubyGems dependencies for CVE-2013-0155?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gppp-5xc5-wfpx",
"modified" : "2023-08-25T23:11:25Z",
"published" : "2017-10-24T18:33:37Z",
"aliases" : [ "CVE-2013-0155" ],
"summary" : "Active Record allows bypassing of database-query restrictions",
"details" : "Ruby on Rails 3.0.x before 3.0.19, 3.1.x before 3.1.10, and 3.2.x before 3.2.11 does not properly consider differences in parameter handling between the Active Record component and the JSON implementation, which allows remote attackers to bypass intended database-query restrictions and perform NULL checks or trigger missing WHERE clauses via a crafted request, as demonstrated by certain \"[nil]\" values, a related issue to CVE-2012-2660 and CVE-2012-2694.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activerecord"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.0.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activerecord"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activerecord"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.2.0"
}, {
"fixed" : "3.2.11"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-0155"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2013-0155.yml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/group/rubyonrails-security/msg/bc6f13dafe130ee9?dmode=source&output=gplain"
}, {
"type" : "WEB",
"url" : "http://ics-cert.us-cert.gov/advisories/ICSA-13-036-01A"
}, {
"type" : "WEB",
"url" : "http://lists.apple.com/archives/security-announce/2013/Jun/msg00000.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2013-12/msg00079.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2013-12/msg00081.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2013-12/msg00082.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2014-01/msg00003.html"
}, {
"type" : "WEB",
"url" : "http://rhn.redhat.com/errata/RHSA-2013-0154.html"
}, {
"type" : "WEB",
"url" : "http://support.apple.com/kb/HT5784"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2013/dsa-2609"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:37:49Z",
"nvd_published_at" : null
}
}