Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rails | 2:4.2.5.1-1 | — |
| Debian 13 | rails | 2:4.2.5.1-1 | — |
| Debian 12 | rails | 2:4.2.5.1-1 | — |
| Debian 8 | rails | 2:4.1.8-1+deb8u1 | DSA-3464-1 |
| Debian 7 | ruby-actionpack-3.2 | 3.2.6-6+deb7u3 | DLA-604-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 2 | rh-ror41-rubygem-actionpack +2 | 1:4.1.5-3.el6 | RHSA-2016:0296 |
| RHEL 2 | rh-ror41-rubygem-actionview +1 | 4.1.5-4.el6 | RHSA-2016:0296 |
| RHEL 2 | rh-ror41-rubygem-activemodel +1 | 4.1.5-2.el6 | RHSA-2016:0296 |
| RHEL 2 | rh-ror41-rubygem-activerecord +1 | 1:4.1.5-2.el6 | RHSA-2016:0296 |
| RHEL 2 | ror40-rubygem-actionpack +1 | 1:4.0.2-7.el6 | RHSA-2016:0454 |
| RHEL 2 | ror40-rubygem-activerecord +1 | 1:4.0.2-6.el6 | RHSA-2016:0454 |
| RHEL 2 | ror40-rubygem-activesupport | 1:4.0.2-4.el6 | RHSA-2016:0454 |
| RHEL 2 | ruby193-rubygem-actionpack +1 | 1:3.2.8-16.el6 | RHSA-2016:0455 |
| RHEL 2 | ruby193-rubygem-activerecord +1 | 1:3.2.8-11.el6 | RHSA-2016:0455 |
| RHEL 2 | ruby193-rubygem-activesupport | 1:3.2.8-6.el6 | RHSA-2016:0455 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 | portus | 2.0.3-2.4 | SUSE-SU-2016:1146-1 |
| SLES 11 SP4 | rubygem-actionpack-3_2 | 3.2.12-0.23.1 | SUSE-SU-2016:0618-1 |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE WebYast 1.3 | rubygem-actionpack-3_2 | 3.2.12-0.23.1 | SUSE-SU-2016:0618-1 |
| SUSE Studio Onsite Runner 1.3 | libjansson | 2.2.1-0.9.11.6 | SUSE-SU-2017:0475-1 |
| SUSE Studio Onsite Runner 1.3 | qemu-ext2 | 0.1.1-0.9.4.19 | SUSE-SU-2017:0475-1 |
| SUSE Studio Onsite Runner 1.3 | rubygem-bundler19 | 1.7.0-0.13.10 | SUSE-SU-2017:0475-1 |
| SUSE Studio Onsite Runner 1.3 | studio-help | 1.3.20-0.6.9 | SUSE-SU-2017:0475-1 |
| SUSE Studio Onsite Runner 1.3 | susestudio | 1.3.14-52.1 | SUSE-SU-2017:0475-1 |
| SUSE Studio Onsite 1.3 | libjansson | 2.2.1-0.9.11.6 | SUSE-SU-2017:0475-1 |
| SUSE Studio Onsite 1.3 | qemu-ext2 | 0.1.1-0.9.4.19 | SUSE-SU-2017:0475-1 |
| SUSE Studio Onsite 1.3 | rubygem-actionpack-3_2 | 3.2.12-0.23.1 | SUSE-SU-2016:0618-1 |
| SUSE Studio Onsite 1.3 | rubygem-bundler19 | 1.7.0-0.13.10 | SUSE-SU-2017:0475-1 |
| SUSE Studio Onsite 1.3 | studio-help | 1.3.20-0.6.9 | SUSE-SU-2017:0475-1 |
| SUSE Studio Onsite 1.3 | susestudio | 1.3.14-52.1 | SUSE-SU-2017:0475-1 |
| SUSE OpenStack Cloud 5 | rubygem-actionpack-4_1 +1 | 4.1.9-9.1 | SUSE-SU-2016:0858-1, SUSE-SU-2016:0599-1 |
| SUSE Lifecycle Management Server 1.3 | rubygem-actionpack-3_2 | 3.2.12-0.23.1 | SUSE-SU-2016:0618-1 |
| SUSE Enterprise Storage 2.1 | rubygem-actionpack-4_2 | 4.2.2-6.1 | SUSE-SU-2016:0457-1 |
| SUSE Enterprise Storage 2.1 | rubygem-actionview-4_2 | 4.2.2-5.1 | SUSE-SU-2016:0456-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Ruby on Rails Dynamic Render File Upload Remote Code Execution
exploit/multi/http/rails_dynamic_render_code_exec
Exploit-DB 1
- Ruby on Rails - Dynamic Render File Upload / Remote Code Execution (Metasploit) EDB-40561 · remote · Oct 17, 2016 · verified
GitHub 2 repositories
-
forced-request/rails-rce-cve-2016-0752 ★ 10 · Jan 26, 2016
-
dachidahu/CVE-2016-0752 ★ 0 · Mar 18, 2016
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | actionpack | >= 4.0.0, < 4.1.14.1 | 4.1.14.1 | GHSA-xrr4-p6fq-hjg7 |
| RubyGems | actionpack | >= 4.2.0, < 4.2.5.1 | 4.2.5.1 | GHSA-xrr4-p6fq-hjg7 |
| RubyGems | actionpack | < 3.2.22.1 | 3.2.22.1 | GHSA-xrr4-p6fq-hjg7 |
| RubyGems | actionview | >= 4.0.0, < 4.1.14.1 | 4.1.14.1 | GHSA-xrr4-p6fq-hjg7 |
| RubyGems | actionview | >= 4.2.0, < 4.2.5.1 | 4.2.5.1 | GHSA-xrr4-p6fq-hjg7 |
Advisories 13
- RHSA-2016:0455 Red Hat Security Advisory: ruby193 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:0454 Red Hat Security Advisory: ror40 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2016:0296 Red Hat Security Advisory: rh-ror41 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- WID-SEC-2025-1085 Ruby on Rails: Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 17, 2026
- DLA-604-1 ruby-actionpack-3.2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3464-1 rails - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2017:0475-1 Security update for susestudio SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:0618-1 Security update for rubygem-actionpack-3_2 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:0858-1 Security update for rubygem-actionpack-4_1 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:1146-1 Security update for portus SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:0599-1 Security update for rubygem-actionview-4_1 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:0456-1 Security update for rubygem-actionview-4_2 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:0457-1 Security update for rubygem-actionpack-4_2 SUSE / openSUSE Security Updates · Feb 4, 2026
References
- 40561 exploit
- openSUSE-SU-2016:0372 vendor-advisory
- openSUSE-SU-2016:0363 vendor-advisory
- [oss-security] 20160125 [CVE-2016-0752] Possible Information Leak Vulnerability in Action View mailing-list
- FEDORA-2016-97002ad37b vendor-advisory
- SUSE-SU-2016:1146 vendor-advisory
- 81801 vdb-entry
- 1034816 vdb-entry
- FEDORA-2016-fa0dec2360 vendor-advisory
- [ruby-security-ann] 20160125 [CVE-2016-0752] Possible Information Leak Vulnerability in Action View mailing-list
- DSA-3464 vendor-advisory
- RHSA-2016:0296 vendor-advisory