CVE-2016-2098 — Vulnerability in actionpack — CVE Details
actionpack allows remote code execution via application's unrestricted use of render method
What Should I Do?
Fix in Your Next Sprint
This vulnerability has a 81.45% chance of being exploited within 30 days.
Does your project use an affected actionpack version?
Paste your Gemfile.lock to check it for CVE-2016-2098 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published October 24, 2017 (3320 days ago).
- Last revised February 20, 2024 — 2309 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install actionpack -v 4.1.14.2
gem install actionpack -v 3.2.22.2
gem install actionpack -v 4.2.5.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| actionpack RubyGems · Affected: 4.0.0, 4.0.1, 4.0.1.rc1, 4.0.1.rc2 (+57 more) | 4.1.14.2 |
| actionpack RubyGems · Affected: 3.0.0, 3.0.1, 3.0.10, 3.0.10.rc1 (+104 more) | 3.2.22.2 |
| actionpack RubyGems · Affected: 4.2.0, 4.2.1, 4.2.1.rc1, 4.2.1.rc2 (+11 more) | 4.2.5.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-20Improper Input ValidationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.3 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-2098ADVISORY
- https://github.com/rails/railsPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2016-2098.ymlWEB
- https://groups.google.com/forum/#!topic/rubyonrails-security/ly-IH-fxr_QWEB
- https://web.archive.org/web/20200228015318/http://www.securityfocus.com/bid/83725WEB
- https://web.archive.org/web/20210612214217/https://groups.google.com/forum/message/raw?msg=rubyonrails-security/ly-IH-fxr_Q/WLoOhcMZIAAJWEB
- https://web.archive.org/web/20211205173437/https://securitytracker.com/id/1035122WEB
- https://www.exploit-db.com/exploits/40086WEB
- https://lists.opensuse.org/opensuse-security-announce/2016-03/msg00057.htmlWEB
- https://lists.opensuse.org/opensuse-security-announce/2016-03/msg00080.htmlWEB
- https://lists.opensuse.org/opensuse-security-announce/2016-03/msg00083.htmlWEB
- https://lists.opensuse.org/opensuse-security-announce/2016-03/msg00086.htmlWEB
- https://lists.opensuse.org/opensuse-security-announce/2016-04/msg00006.htmlWEB
- https://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.htmlWEB
- https://weblog.rubyonrails.org/2016/2/29/Rails-4-2-5-2-4-1-14-2-3-2-22-2-have-been-releasedWEB
- https://www.debian.org/security/2016/dsa-3509WEB
Frequently Asked Questions
- What is CVE-2016-2098?
- actionpack allows remote code execution via application's unrestricted use of render method. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.3/10).
- How do I check if my project is affected by CVE-2016-2098?
- CVE-2016-2098 affects actionpack. It has a 81.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2016-2098 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top 5% of EPSS-scored vulnerabilities — 99.8% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2026-126083HIGH
Action Pack: Possible IP spoofing in Action Dispatch RemoteIp
- CVE-2014-0130HIGH
actionpack Path Traversal vulnerability
- CVE-2021-22904HIGH
Possible DoS Vulnerability in Action Controller Token Authentication
- CVE-2020-8164HIGH
Possible Strong Parameters Bypass in ActionPack
- CVE-2016-0752HIGH
Directory traversal vulnerability in Action View in Ruby on Rails
- CVE-2021-22903MEDIUM
Possible Open Redirect Vulnerability in Action Pack
- CVE-2023-22797MEDIUM
Open Redirect Vulnerability in Action Pack
- CVE-2024-41128MEDIUM
Possible ReDoS vulnerability in query parameter filtering in Action Dispatch