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, an
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.
- Published
- Feb 15, 2016
- Updated
- Jun 16, 2026
- EPSS
- 95.5% · 100th percentile
- CWE
- CWE-22
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
89
Now
Patch today or shut off access.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 30 / 30 · Listed
- EPSS
- 29 / 30 · 95.5%
CISA SSVC decision
- Exploitation
- active
- Automatable
- yes
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
Actively exploited in the wild
CISA added this to its Known Exploited Vulnerabilities catalog on Mar 25, 2022. That signals real attacks, not theory.
Remediation deadline for government agencies: Apr 15, 2022.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| rubyonrails | rails | cpe:2.3:a:rubyonrails:rails |
| opensuse | leap | cpe:2.3:o:opensuse:leap |
| opensuse | opensuse | cpe:2.3:o:opensuse:opensuse |
| suse | linux enterprise module for containers | cpe:2.3:o:suse:linux_enterprise_module_for_containers |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| redhat | software collections | cpe:2.3:a:redhat:software_collections |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux8.0
- opensuse leap42.1
- opensuse opensuse13.2
- redhat software collections1.0
- rubyonrails rails4.2.0 and later · before 4.2.5.1
- rubyonrails rails4.0.0 and later · before 4.1.14.1
- rubyonrails railsbefore 3.2.22.1
- rubyonrails rails5.0.0
- suse linux enterprise module for containers12
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | rails | before 2:4.2.5.1-1 | 2:4.2.5.1-1 |
| Debian:7 | ruby-actionpack-3.2 | before 3.2.6-6+deb7u3 | 3.2.6-6+deb7u3 |
| Debian:8 | rails | before 2:4.1.8-1+deb8u1 | 2:4.1.8-1+deb8u1 |
| Red Hat:rhel_software_collections:2::el6 | rh-ror41-rubygem-actionpack | before 1:4.1.5-3.el6 | 1:4.1.5-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ror41-rubygem-actionpack-doc | before 1:4.1.5-3.el6 | 1:4.1.5-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ror41-rubygem-actionview | before 0:4.1.5-4.el6 | 0:4.1.5-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ror41-rubygem-actionview-doc | before 0:4.1.5-4.el6 | 0:4.1.5-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ror41-rubygem-activemodel | before 0:4.1.5-2.el6 | 0:4.1.5-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ror41-rubygem-activemodel-doc | before 0:4.1.5-2.el6 | 0:4.1.5-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ror41-rubygem-activerecord | before 1:4.1.5-2.el6 | 1:4.1.5-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ror41-rubygem-activerecord-doc | before 1:4.1.5-2.el6 | 1:4.1.5-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-ror41-rubygem-activesupport | before 1:4.1.5-3.el6 | 1:4.1.5-3.el6 |
| Red Hat:rhel_software_collections:2::el6 | ror40-rubygem-actionpack | before 1:4.0.2-7.el6 | 1:4.0.2-7.el6 |
| Red Hat:rhel_software_collections:2::el6 | ror40-rubygem-actionpack-doc | before 1:4.0.2-7.el6 | 1:4.0.2-7.el6 |
| Red Hat:rhel_software_collections:2::el6 | ror40-rubygem-activerecord | before 1:4.0.2-6.el6 | 1:4.0.2-6.el6 |
| Red Hat:rhel_software_collections:2::el6 | ror40-rubygem-activerecord-doc | before 1:4.0.2-6.el6 | 1:4.0.2-6.el6 |
| Red Hat:rhel_software_collections:2::el6 | ror40-rubygem-activesupport | before 1:4.0.2-4.el6 | 1:4.0.2-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | ruby193-rubygem-actionpack | before 1:3.2.8-16.el6 | 1:3.2.8-16.el6 |
| Red Hat:rhel_software_collections:2::el6 | ruby193-rubygem-actionpack-doc | before 1:3.2.8-16.el6 | 1:3.2.8-16.el6 |
| Red Hat:rhel_software_collections:2::el6 | ruby193-rubygem-activerecord | before 1:3.2.8-11.el6 | 1:3.2.8-11.el6 |
| Red Hat:rhel_software_collections:2::el6 | ruby193-rubygem-activerecord-doc | before 1:3.2.8-11.el6 | 1:3.2.8-11.el6 |
| Red Hat:rhel_software_collections:2::el6 | ruby193-rubygem-activesupport | before 1:3.2.8-6.el6 | 1:3.2.8-6.el6 |
| Red Hat:rhel_software_collections:2::el7 | rh-ror41-rubygem-actionpack | before 1:4.1.5-3.el7 | 1:4.1.5-3.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-ror41-rubygem-actionpack-doc | before 1:4.1.5-3.el7 | 1:4.1.5-3.el7 |
+33
Same product
rubyonrails: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-5418There is a File Content Disclosure vulnerability in Action View <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1 and v3 where specially crafted accepKEV90Now
- CVE-2019-5420A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess the automatically gene66This week
- CVE-2020-8163The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the `locals` argument o60This week
- CVE-2013-0156active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before 3.0.19, 3.1.x before 3.1.10, and 3.2.x before 3.2.160This week
- CVE-2013-0333lib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not properly convert JSON data to59Plan
- CVE-2020-8165A deserialization of untrusted data vulnernerability exists in rails < 5.2.4.3, rails < 6.0.3.1 that can allow an attacker to unmarshal user53Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:rails | 2:4.2.5.1-1 · Debian:12 | Package registry (OSV) |
| debian:ruby-actionpack-3.2 | 3.2.6-6+deb7u3 · Debian:7 | Package registry (OSV) |
| red hat:rh-ror41-rubygem-actionpack | 1:4.1.5-3.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ror41-rubygem-actionpack-doc | 1:4.1.5-3.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ror41-rubygem-actionview | 0:4.1.5-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ror41-rubygem-actionview-doc | 0:4.1.5-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ror41-rubygem-activemodel | 0:4.1.5-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ror41-rubygem-activemodel-doc | 0:4.1.5-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ror41-rubygem-activerecord | 1:4.1.5-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ror41-rubygem-activerecord-doc | 1:4.1.5-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-ror41-rubygem-activesupport | 1:4.1.5-3.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:ror40-rubygem-actionpack | 1:4.0.2-7.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:ror40-rubygem-actionpack-doc | 1:4.0.2-7.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:ror40-rubygem-activerecord | 1:4.0.2-6.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| RubyGems:actionpack | 3.2.22.1 | Package registry (OSV) |
| RubyGems:actionpack | 4.1.14.1 | Package registry (OSV) |
| RubyGems:actionpack | 4.2.5.1 | Package registry (OSV) |
| RubyGems:actionview | 4.1.14.1 | Package registry (OSV) |
| RubyGems:actionview | 4.2.5.1 | Package registry (OSV) |
| suse:libjansson | 2.2.1-0.9.11.6 · SUSE:Studio Onsite 1.3 | Package registry (OSV) |
| suse:portus | 2.0.3-2.4 · SUSE:Linux Enterprise Module for Containers 12 | Package registry (OSV) |
| suse:qemu-ext2 | 0.1.1-0.9.4.19 · SUSE:Studio Onsite 1.3 | Package registry (OSV) |
| suse:rubygem-actionpack-3_2 | 3.2.12-0.23.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4 | Package registry (OSV) |
| suse:rubygem-actionpack-4_1 | 4.1.9-9.1 · SUSE:OpenStack Cloud 5 | Package registry (OSV) |
| suse:rubygem-actionpack-4_2 | 4.2.2-6.1 · SUSE:Enterprise Storage 2.1 | Package registry (OSV) |
| suse:rubygem-actionview-4_1 | 4.1.9-9.1 · SUSE:OpenStack Cloud 5 | Package registry (OSV) |
| suse:rubygem-actionview-4_2 | 4.2.2-5.1 · SUSE:Enterprise Storage 2.1 | Package registry (OSV) |
| suse:rubygem-bundler19 | 1.7.0-0.13.10 · SUSE:Studio Onsite 1.3 | Package registry (OSV) |
| suse:studio-help | 1.3.20-0.6.9 · SUSE:Studio Onsite 1.3 | Package registry (OSV) |
| suse:susestudio | 1.3.14-52.1 · SUSE:Studio Onsite 1.3 | Package registry (OSV) |
Exploit status
Weaponized
A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.
Evidence
- Metasploit module ×1
- Exploit-DB entry ×1
- Proof-of-concept repository on GitHub ×2
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | remote | 2016-10-17 |
| Metasploit module | exploit/multi/http/rails_dynamic_render_code_execRuby on Rails Dynamic Render File Upload Remote Code Executionexploit | 2016-10-16 |
| Proof-of-concept repository on GitHub | stars:10 | 2016-01-26 |
| Proof-of-concept repository on GitHub | stars:0 | 2016-03-18 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- First PoC-21 d
- Published
- Metasploit+243 d
- CISA KEV+2229 d
- TodaySep 30, 2026+3879 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvd-primary
Root cause
A user-supplied file name is joined with the allowed directory, but the result is never checked to confirm it is still inside that directory.
The bug in code
The whole CWE-22 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const file = path.join(ROOT, req.query.name);res.sendFile(file);Fixed
const file = path.resolve(ROOT, req.query.name);if (!file.startsWith(ROOT + path.sep)) { return res.sendStatus(400);}res.sendFile(file);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Path TraversalCAPEC-126likelihood: High · Very High
- Using Slashes and URL Encoding Combined to Bypass Validation LogicCAPEC-64likelihood: High · High
- Manipulating Web Input to File System CallsCAPEC-76likelihood: High · Very High
- Using Escaped Slashes in Alternate EncodingCAPEC-78likelihood: High · High
- Using Slashes in Alternate EncodingCAPEC-79likelihood: High · High
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.fedoraproject.org/pipermail/package-announce/2016-February/178044.html
- lists.fedoraproject.org/pipermail/package-announce/2016-February/178069.html
- lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.html
- lists.opensuse.org/opensuse-updates/2016-02/msg00034.html
- lists.opensuse.org/opensuse-updates/2016-02/msg00043.html
- rhn.redhat.com/errata/RHSA-2016-0296.html
- www.debian.org/security/2016/dsa-3464
- www.securityfocus.com/bid/81801
- www.securitytracker.com/id/1034816
- groups.google.com/forum/message/raw?msg=ruby-security-ann/335P1DcLG00/JXcBnTtZEgAJ
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2016-0752
Vendor advisories and official records. Exploit/PoC links are deliberately left out.