CVE-2016-0752 — Directory traversal vulnerability in actionview
Directory traversal vulnerability in Action View in Ruby on Rails
What Should I Do?
Patch Immediately
This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.
Does your project use an affected actionview version?
Paste your Gemfile.lock to check it for CVE-2016-0752 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
Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1 allows remote attackers to read arbitrary files by leveraging an application's unrestricted use of the render method and providing a .. (dot dot) in a pathname.
Advisory Timeline
- First published October 24, 2017 (3320 days ago).
- Last revised October 22, 2025 — 2920 days after initial publication.
- Added to CISA's Known Exploited Vulnerabilities catalog 1612 days after publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install actionview -v 4.1.14.1
gem install actionpack -v 4.2.5.1
gem install actionpack -v 4.1.14.1
gem install actionpack -v 3.2.22.1
gem install actionview -v 4.2.5.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (5)
Affects 1 ecosystem: RubyGems (2).
| Package | Fixed In |
|---|---|
| actionview RubyGems · Affected: 4.1.0, 4.1.0.beta1, 4.1.0.beta2, 4.1.0.rc1 (+30 more) | 4.1.14.1 |
| actionpack RubyGems · Affected: 4.2.0, 4.2.1, 4.2.1.rc1, 4.2.1.rc2 (+10 more) | 4.2.5.1 |
| actionpack RubyGems · Affected: 4.0.0, 4.0.1, 4.0.1.rc1, 4.0.1.rc2 (+56 more) | 4.1.14.1 |
| actionpack RubyGems · Affected: 0.9.0, 0.9.5, 1.0.0, 1.0.1 (+172 more) | 3.2.22.1 |
| actionview RubyGems · Affected: 4.2.0, 4.2.1, 4.2.1.rc1, 4.2.1.rc2 (+10 more) | 4.2.5.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2016-0752ADVISORY
- https://github.com/advisories/GHSA-xrr4-p6fq-hjg7ADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2016-0752.ymlWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionview/CVE-2016-0752.ymlWEB
- https://groups.google.com/forum/#!topic/rubyonrails-security/335P1DcLG00WEB
- https://groups.google.com/forum/message/raw?msg=ruby-security-ann/335P1DcLG00/JXcBnTtZEgAJWEB
- https://web.archive.org/web/20210618005620/https://groups.google.com/forum/message/raw?msg=ruby-security-ann/335P1DcLG00/JXcBnTtZEgAJWEB
- https://web.archive.org/web/20210621170450/http://www.securityfocus.com/bid/81801WEB
- https://web.archive.org/web/20210723192420/http://www.securitytracker.com/id/1034816WEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2016-0752WEB
- https://www.exploit-db.com/exploits/40561WEB
- https://lists.fedoraproject.org/pipermail/package-announce/2016-February/178044.htmlWEB
- https://lists.fedoraproject.org/pipermail/package-announce/2016-February/178069.htmlWEB
- https://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.htmlWEB
- https://lists.opensuse.org/opensuse-updates/2016-02/msg00034.htmlWEB
- https://lists.opensuse.org/opensuse-updates/2016-02/msg00043.htmlWEB
- https://rhn.redhat.com/errata/RHSA-2016-0296.htmlWEB
- https://www.debian.org/security/2016/dsa-3464WEB
- https://www.openwall.com/lists/oss-security/2016/01/25/13WEB
- https://www.securityfocus.com/bid/81801WEB
- https://www.securitytracker.com/id/1034816WEB
Frequently Asked Questions
- What is CVE-2016-0752?
- Directory traversal vulnerability in Action View in Ruby on Rails. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2016-0752?
- CVE-2016-0752 affects actionview and actionpack. It has a 95.5% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2016-0752 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.9% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.
Added to KEV catalog: March 25, 2022
Remediation deadline: April 15, 2022
Also Known As
Related CVEs
- CVE-2015-7581HIGH
actionpack is vulnerable to denial of service because of a wildcard controller route
- CVE-2020-8163HIGH
Remote code execution via user-provided local names in ActionView
- CVE-2016-0751HIGH
actionpack is vulnerable to denial of service via a crafted HTTP Accept header
- CVE-2021-22902HIGH
Denial of Service in Action Dispatch
- CVE-2020-8185MEDIUM
Untrusted users can run pending migrations in production in Rails
- CVE-2022-27777MEDIUM
XSS Vulnerability in Action View tag helpers
- CVE-2024-28103MEDIUM
Missing security headers in Action Pack on non-HTML responses
- CVE-2016-2097MEDIUM
actionview contains Path Traversal vulnerability