CVE-2016-2098: Actionpack Remote Code Execution Vulnerability
HIGHCVE-2016-2098 is a HIGH (CVSS 7.3) remote code execution vulnerability (CWE-20: Improper Input Validation) affecting Actionpack libraries in the RubyGems ecosystem. The issue involves actionpack allows remote code execution via application's unrestricted use of render method. Remediation is available by upgrading affected packages to version 3.2.22.2, 4.1.14.2, 4.2.5.2.
CVE-2016-2098 at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2016-2098
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.2.22.2
Upgrade actionpack to 4.1.14.2
Upgrade actionpack to 4.2.5.2
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-2016-2098, 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.2.22.2), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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-2016-2098 Affected Actionpack Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
actionpack
|
RubyGems |
≥ 3.0.0
< 3.2.22.2
|
3.2.22.2
|
|
actionpack
|
RubyGems |
≥ 4.0.0
< 4.1.14.2
|
4.1.14.2
|
|
actionpack
|
RubyGems |
≥ 4.2.0
< 4.2.5.2
|
4.2.5.2
|
References
Frequently Asked Questions
What is CVE-2016-2098?
Which Actionpack versions are affected?
What version fixes CVE-2016-2098?
Is actionpack affected?
What is the CVSS score of CVE-2016-2098?
What CWE is associated with CVE-2016-2098?
How can I check RubyGems dependencies for CVE-2016-2098?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-78rc-8c29-p45g",
"modified" : "2023-07-03T18:58:43Z",
"published" : "2017-10-24T18:33:35Z",
"aliases" : [ "CVE-2016-2098" ],
"summary" : "actionpack allows remote code execution via application's unrestricted use of render method",
"details" : "Action Pack in Ruby on Rails before 3.2.22.2, 4.x before 4.1.14.2, and 4.2.x before 4.2.5.2 allows remote attackers to execute arbitrary Ruby code by leveraging an application's unrestricted use of the render method.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.2.22.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.2.22.1"
}
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.1.14.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.1.14.1"
}
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "actionpack"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0"
}, {
"fixed" : "4.2.5.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.2.5.1"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-2098"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2016-2098.yml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/forum/#!topic/rubyonrails-security/ly-IH-fxr_Q"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200228015318/http://www.securityfocus.com/bid/83725"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210612214217/https://groups.google.com/forum/message/raw?msg=rubyonrails-security/ly-IH-fxr_Q/WLoOhcMZIAAJ"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20211205173437/https://securitytracker.com/id/1035122"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/40086"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00057.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00080.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00083.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00086.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00006.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.html"
}, {
"type" : "WEB",
"url" : "http://weblog.rubyonrails.org/2016/2/29/Rails-4-2-5-2-4-1-14-2-3-2-22-2-have-been-released"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2016/dsa-3509"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:22:13Z",
"nvd_published_at" : null
}
}