CVE-2016-0752: 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…
Noroxi assessment
Priority: Now (action score 89/100)
- CISA has confirmed exploitation in the wild (Mar 25, 2022). Remediation deadline for US federal agencies: Apr 15, 2022.
- A ready-made attack module is public (Metasploit); exploiting it takes no special expertise.
- Probability of exploitation in the next 30 days: 95.5% (FIRST EPSS); higher than 99.8% of all records.
- 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.
- According to CISA the attack is automatable: targets can be found by mass scanning.
- Fixed version: rails (Debian:12) 2:4.2.5.1-1; ruby-actionpack-3.2 (Debian:7) 3.2.6-6+deb7u3; rails (Debian:8) 2:4.1.8-1+deb8u1.
Patch today or shut off access. Upgrade to rails (Debian:12) 2:4.2.5.1-1; ruby-actionpack-3.2 (Debian:7) 3.2.6-6+deb7u3; rails (Debian:8) 2:4.1.8-1+deb8u1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · CISA KEV · FIRST EPSS
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% · 99th percentile
- CWE
- CWE-22
Report tools
Action score
89
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 US federal agencies: Apr 15, 2022.
Get told when this record changes
- In CISA KEV: exploitation in the wild confirmed
- Weaponized exploit exists
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| 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…KEV90Now
- 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…66This 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…60This week
Published before and after this one in the same product
- ← EarlierCVE-2015-7581Feb 15, 2016 · actionpack/lib/action_dispatch/routing/route_set.rb in Action Pack in Ruby on Rails 4.x before 4.2.5.1 and 5.x before 5.0.0.beta1.1 allows…32Monitor
- ← EarlierCVE-2016-0751Feb 15, 2016 · actionpack/lib/action_dispatch/http/mime_type.rb in Action Pack in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x…33Monitor
- Later →CVE-2016-0753Feb 15, 2016 · Active Model in Ruby on Rails 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 supports the use of instance-level…23Monitor
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
- TodayNov 15, 2026+3925 d
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate.
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
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (10 more)Show less
- 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.