Description
There 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 accept headers can cause contents of arbitrary files on the target system's filesystem to be exposed.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Rails | https://github.com/rails/rails | 5.2.2.1, 5.1.6.2, 5.0.7.2, 4.2.11.1 | — |
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:5.2.2.1+dfsg-1 | — |
| Debian 13 | rails | 2:5.2.2.1+dfsg-1 | — |
| Debian 12 | rails | 2:5.2.2.1+dfsg-1 | — |
| Debian 8 | rails | 2:4.1.8-1+deb8u5 | DLA-1739-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | rails | 2:4.2.10-0ubuntu4+esm2 | USN-7646-1 |
| Ubuntu Pro 16.04 LTS | rails | 2:4.2.6-1ubuntu0.1~esm2 | USN-7646-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 3 | rh-ror42-rubygem-actionpack +1 | 1:4.2.6-5.el6 | RHSA-2019:1149 |
| RHEL 3 | rh-ror50-rubygem-actionpack +1 | 1:5.0.1-2.el6 | RHSA-2019:1147 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat CloudForms 5 | ansible-tower +5 | 3.4.3-1.el7at | RHSA-2019:0796 |
| Red Hat CloudForms 5 | cfme +5 | 5.9.9.3-1.el7cf | RHSA-2019:1289, RHSA-2019:0796 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP2 | rmt-server | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SLES 15 SP1 | rmt-server | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SLES 15 | rmt-server | 2.6.5-3.34.1 | SUSE-SU-2020:3147-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 | rmt-server | 2.6.5-3.34.1 | SUSE-SU-2020:3147-1 |
| SLE HPC 15 | rmt-server | 2.6.5-3.34.1 | SUSE-SU-2020:3147-1 |
| SUSE OpenStack Cloud Crowbar 8 | rubygem-actionpack-4_2 | 4.2.9-7.6.1 | SUSE-SU-2019:0915-1 |
| SUSE OpenStack Cloud 7 | rubygem-actionpack-4_2 | 4.2.9-7.6.1 | SUSE-SU-2019:0915-1 |
| SUSE Enterprise Storage 4 | rubygem-actionpack-4_2 | 4.2.9-7.6.1 | SUSE-SU-2019:0915-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | rubygem-rails-6.0 +12 | 6.0.4.4-1.1 | openSUSE-SU-2024:11832-1, openSUSE-SU-2024:11831-1, openSUSE-SU-2024:11828-1 |
| openSUSE Leap 15.2 | rmt-server | 2.6.5-lp152.2.3.1 | openSUSE-SU-2020:1993-1 |
| openSUSE Leap 15.1 | rmt-server | 2.6.5-lp151.2.18.2 | openSUSE-SU-2020:2000-1 |
| openSUSE Leap 15.0 | rubygem-actionpack-5_1 | 5.1.4-lp150.2.3.1 | openSUSE-SU-2019:1344-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 File Content Disclosure ('doubletap')
auxiliary/gather/rails_doubletap_file_read
Exploit-DB 1
- Rails 5.2.1 - Arbitrary File Content Disclosure EDB-46585 · webapps · Mar 21, 2019
GitHub 12 repositories · most starred shown
-
mpgn/CVE-2019-5418 ★ 201 · Mar 16, 2019
CVE-2019-5418 - File Content Disclosure on Ruby on Rails
-
mpgn/Rails-doubletap-RCE ★ 132 · Mar 23, 2019
RCE on Rails 5.2.2 using a path traversal (CVE-2019-5418) and a deserialization of Ruby objects (CVE-2019-5420)
-
brompwnie/CVE-2019-5418-Scanner ★ 36 · Mar 19, 2019
A multi-threaded Golang scanner to identify Ruby endpoints vulnerable to CVE-2019-5418
-
random-robbie/CVE-2019-5418 ★ 5 · Nov 19, 2019
-
omarkurt/CVE-2019-5418 ★ 5 · Mar 18, 2019
File Content Disclosure on Rails Test Case - CVE-2019-5418
-
Bad3r/RailroadBandit ★ 3 · Apr 1, 2019
a demo for Ruby on Rails CVE-2019-5418
-
kailing0220/CVE-2019-5418 ★ 2 · Oct 17, 2022
Ruby on Rails是一个 Web 应用程序框架,是一个相对较新的 Web 应用程序框架,构建在 Ruby 语言之上。这个漏洞主要是由于Ruby on Rails使用了指定参数的render file来渲染应用之外的视图,我们可以通过修改访问某控制器的请求包,通过“…/…/…/…/”来达到路径穿越的目的,然后再通过“{{”来进行模板查询路径的闭合,使得所要访问的文件被当做外部模板来解析。
-
daehyeok0618/CVE-2019-5418 ★ 0 · Apr 7, 2025
WHS 3기 장대혁 취약한(CVE) Docker 환경 구성 과제입니다.
-
melardev/CVE-2019-5418 ★ 0 · Oct 24, 2019
-
ztgrace/CVE-2019-5418-Rails3 ★ 0 · Oct 4, 2019
Rails 3 PoC of CVE-2019-5418
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Rails File Content Disclosure http/cves/2019/CVE-2019-5418.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | actionview | >= 5.2.0, < 5.2.2.1 | 5.2.2.1 | GHSA-86g5-2wh3-gc9j |
| RubyGems | actionview | >= 4.0.0, < 4.2.11.1 | 4.2.11.1 | GHSA-86g5-2wh3-gc9j |
| RubyGems | actionview | >= 5.1.0, < 5.1.6.2 | 5.1.6.2 | GHSA-86g5-2wh3-gc9j |
| RubyGems | actionview | >= 5.0.0, < 5.0.7.2 | 5.0.7.2 | GHSA-86g5-2wh3-gc9j |
Advisories 27
- RHSA-2019:1289 Red Hat Security Advisory: CloudForms 4.6.9 security, bug fix and enhancement update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2019:1149 Red Hat Security Advisory: rh-ror42-rubygem-actionpack security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2019:1147 Red Hat Security Advisory: rh-ror50-rubygem-actionpack security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2019:0796 Red Hat Security Advisory: CloudForms 4.7.3 security, bug fix and enhancement update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- USN-7646-1 rails vulnerability Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-1739-1 rails - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:11826-1 ruby3.1-rubygem-activerecord-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11821-1 ruby3.1-rubygem-actionpack-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:3160-1 Security update for rmt-server SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:1993-1 Security update for rmt-server SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11824-1 ruby3.1-rubygem-activejob-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11823-1 ruby3.1-rubygem-actionview-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11825-1 ruby3.1-rubygem-activemodel-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:0915-1 Security update for rubygem-actionpack-4_2 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11819-1 ruby3.1-rubygem-actionmailbox-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11832-1 ruby3.1-rubygem-railties-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11822-1 ruby3.1-rubygem-actiontext-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11820-1 ruby3.1-rubygem-actionmailer-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11828-1 ruby3.1-rubygem-activesupport-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11831-1 ruby3.1-rubygem-rails-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11827-1 ruby3.1-rubygem-activestorage-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:3036-1 Security update for rmt-server SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:3147-1 Security update for rmt-server SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:2000-1 Security update for rmt-server SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:1344-1 Security update for rubygem-actionpack-5_1 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11818-1 ruby3.1-rubygem-actioncable-6.0-6.0.4.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2025-1467 Ruby on Rails: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 17, 2025
References
- 46585 exploit
- http://packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure.html
- [oss-security] 20190322 [CVE-2019-5418] Amendment: Possible Remote Code Execution Exploit in Action View mailing-list
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/
- https://groups.google.com/forum/#%21topic/rubyonrails-security/pFRKI96Sm8Q
- [debian-lts-announce] 20190331 [SECURITY] [DLA 1739-1] rails security update mailing-list
- RHSA-2019:0796 vendor-advisory
- openSUSE-SU-2019:1344 vendor-advisory
- FEDORA-2019-1cfe24db5c vendor-advisory
- RHSA-2019:1149 vendor-advisory
- RHSA-2019:1147 vendor-advisory
- RHSA-2019:1289 vendor-advisory