CVE-2013-0277: Activerecord Active Record Contains Deserialization Of Vulnerability
CRITICALCVE-2013-0277 is a CRITICAL active record contains deserialization of vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Activerecord libraries in the RubyGems ecosystem. The issue involves active record contains deserialization of arbitrary yaml. Remediation is available by upgrading affected packages to version 2.3.17, 3.1.0.
CVE-2013-0277 at a Glance
How to Fix CVE-2013-0277
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 2.3.17
Upgrade activerecord to 3.1.0
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-0277, 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 2.3.17), 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. 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-0277 Affected Activerecord Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
activerecord
|
RubyGems |
< 2.3.17
|
2.3.17
|
|
activerecord
|
RubyGems |
≥ 3.0.0
< 3.1.0
|
3.1.0
|
References
Frequently Asked Questions
What is CVE-2013-0277?
Which Activerecord versions are affected?
What version fixes CVE-2013-0277?
Is activerecord affected?
What CWE is associated with CVE-2013-0277?
How can I check RubyGems dependencies for CVE-2013-0277?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fhj9-cjjh-27vm",
"modified" : "2023-03-14T22:15:51Z",
"published" : "2017-10-24T18:33:37Z",
"aliases" : [ "CVE-2013-0277" ],
"summary" : "Active Record contains deserialization of arbitrary YAML",
"details" : "ActiveRecord in Ruby on Rails before 2.3.17 and 3.x before 3.1.0 allows remote attackers to cause a denial of service or execute arbitrary code via crafted serialized attributes that cause the +serialize+ helper to deserialize arbitrary YAML.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activerecord"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.3.17"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activerecord"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-0277"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails/tree/v6.1.4.1/activerecord"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2013-0277.yml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/group/rubyonrails-security/msg/302ec7ce90f13837?dmode=source&output=gplain"
}, {
"type" : "WEB",
"url" : "https://puppet.com/security/cve/cve-2013-0277"
}, {
"type" : "WEB",
"url" : "http://lists.apple.com/archives/security-announce/2013/Jun/msg00000.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-updates/2013-03/msg00048.html"
}, {
"type" : "WEB",
"url" : "http://securitytracker.com/id?1028109"
}, {
"type" : "WEB",
"url" : "http://support.apple.com/kb/HT5784"
}, {
"type" : "WEB",
"url" : "http://weblog.rubyonrails.org/2013/2/11/SEC-ANN-Rails-3-2-12-3-1-11-and-2-3-17-have-been-released"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2013/dsa-2620"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2013/02/11/6"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:34:43Z",
"nvd_published_at" : "2013-02-13T01:55:05Z"
}
}