Skip to main content

CVE-2016-2098 — Vulnerability in actionpack — CVE Details

HIGH

actionpack allows remote code execution via application's unrestricted use of render method

Published October 24, 2017Updated February 20, 2024Source: OSV

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.

Check my Gemfile.lock

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.

Bundler
Update actionpack to 4.1.14.2 or later
gem install actionpack -v 4.1.14.2
Bundler
Update actionpack to 3.2.22.2 or later
gem install actionpack -v 3.2.22.2
Bundler
Update actionpack to 4.2.5.2 or later
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).

PackageFixed 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-20
    Improper Input ValidationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

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

CVSS Score
7.3

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
81.45%
EPSS percentile: 99.8

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

GHSA-78rc-8c29-p45g

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock