CVE-2019-5418: Rails Ruby on Rails Path Traversal Vulnerability
Advisory generated from the CVE record, CISA, Exploit Observer and VEDAS: what it is, whether it is exploited, who is affected, and how to fix and detect it.
Generated by VEDAS. Scores as of 2026-11-01 19:19 UTC. Rebuilt every few hours from cve-scores, CISA KEV and vedas-signatures. How this works and its limits.
What it is
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.
Description quoted from the CVE record (assigned by hackerone, published 2019-03-27).
Weakness: Path Traversal (CWE-22)
How it can be exploited
Exploitable over the network with low attack complexity needing no privileges and no user interaction. Impact: confidentiality high, integrity none, availability none. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CISA assessment (SSVC): CISA assesses exploitation as active. Automatable: yes. Technical impact: partial.
- On CISA KEV since
- 2025-07-07
- US federal deadline
- 2025-07-28
- Ransomware use
- Not known
Public exploit evidence (Exploit Observer)
Also known as: BDU:2019-01506, CNNVD-201903-826, CNVD-2019-07446, EDB-46585, EUVD-2019-0375, GHSA-86g5-2wh3-gc9j, GHSA-m63j-wh5w-c252, SNYK-RUBY-ACTIONVIEW-173784, SNYK-SLES152-RMTSERVERCONFIG-2698154
VEDAS cluster: VEDAS:AMULETALBATROSS
Exploit Observer links 19 pieces of public exploit code or detection modules that name this CVE or one of its aliases.
Exploit code and modules (19)
Code that names this CVE. A repository can be a working exploit, a scanner, a fake or malware; read it before running anything.
- Exploit-DB: https://www.exploit-db.com/raw/46585
- Nuclei template: https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/main/http/cves/2019/CVE-2019-5418.yaml
- Code repository: https://github.com/brompwnie/cve-2019-5418-scanner
- Code repository: https://github.com/cyberctf/vulhub-rails-cve-2019-5418
- Code repository: https://github.com/daehyeok0618/cve-2019-5418
- Code repository: https://github.com/kailing0220/cve-2019-5418
- Code repository: https://github.com/melardev/cve-2019-5418
- Code repository: https://github.com/mpgn/cve-2019-5418
- Code repository: https://github.com/mpgn/cve-2019-5418#cve-2019-5418---file-content-disclosure-on-rails
- Code repository: https://github.com/omarkurt/cve-2019-5418
- Code repository: https://github.com/random-robbie/cve-2019-5418
- Code repository: https://github.com/takeokunn/cve-2019-5418
- and 7 more
Research and write-ups (1)
- Research or write-up: https://www.rapid7.com/db/vulnerabilities/ruby_on_rails-cve-2019-5418
Vulnerability databases and vendor advisories (17)
Catalogue entries, not exploit evidence.
- Vulnerability database or vendor advisory: https://access.redhat.com/security/cve/cve-2019-5418
- Vulnerability database or vendor advisory: https://euvd.enisa.europa.eu/enisa/EUVD-2019-0375
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-86g5-2wh3-gc9j
- Vulnerability database or vendor advisory: https://github.com/advisories/GHSA-m63j-wh5w-c252
- Vulnerability database or vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2019-5418
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/CVE-2019-5418
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/GHSA-86g5-2wh3-gc9j
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/GHSA-m63j-wh5w-c252
- Vulnerability database or vendor advisory: https://osv.dev/vulnerability/UBUNTU-CVE-2019-5418
- Vulnerability database or vendor advisory: https://security.snyk.io/vuln/SNYK-RUBY-ACTIONVIEW-173784
- Vulnerability database or vendor advisory: https://security.snyk.io/vuln/SNYK-SLES152-RMTSERVERCONFIG-2698154
- Vulnerability database or vendor advisory: https://ubuntu.com/security/CVE-2019-5418
- and 5 more
145 more references returned by Exploit Observer did not name this CVE or an alias, so they are left out.
VEDAS data as of 2026-11-01T17:12 UTC; fetched 2026-11-02.
Live scores
- EPSS
- 0.985
very likely to be attacked soon - VEDAS
- 0.990
strong exploit evidence - On CISA KEV
- Yes, since 2025-07-07
Thin horizontal line: the “likely” (EPSS 0.10) or “strong” (VEDAS 0.90) threshold. Shaded “no data” areas are periods when cve-scores did not publish. The vertical line is the day CISA added it to its exploited list.
Who is affected
| Product | Affected | Not affected |
|---|---|---|
| Rails https://github.com/rails/rails | version 5.2.2.1 version 5.1.6.2 version 5.0.7.2 version 4.2.11.1 | Not stated |
Version ranges exactly as the CVE record states them. “Before X” means X is the first fixed version.
Exploit Observer also maps it to: rails_core_team ruby_on_rails, rubyonrails rails.
How to fix it
CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Vendor guidance:
- RHSA-2019:0796 (vendor-advisory, x_refsource_REDHAT)
- openSUSE-SU-2019:1344 (vendor-advisory, x_refsource_SUSE)
- FEDORA-2019-1cfe24db5c (vendor-advisory, x_refsource_FEDORA)
- RHSA-2019:1149 (vendor-advisory, x_refsource_REDHAT)
- RHSA-2019:1147 (vendor-advisory, x_refsource_REDHAT)
- RHSA-2019:1289 (vendor-advisory, x_refsource_REDHAT)
How to detect it
Nuclei template (active check)
Rails - Path Traversal
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.
Name and description quoted from the template, written by VEDAS.
The template sends 1 request (GET /); it decides using regex, status matchers. Severity in the template: high. Marked as not yet verified against a live vulnerable target.
Run it against a host you own or are authorised to test:
nuclei -u https://your-host -t CVE-2019-5418.yamlShow the template (40 lines)
id: CVE-2019-5418
info:
name: "Rails - Path Traversal"
author: vedas-arpsyndicate
severity: high
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.
reference:
- https://www.exploit.observer/?keyword=CVE-2019-5418&match=exact
- https://subdomain.center/?engine=ammonites&keyword=rails&match=exact
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2019-5418
cwe-id: CWE-22,NVD-CWE-noinfo
metadata:
verified: false
tags: cve,cve2019,rails,lfi,disclosure,edb,rubyonrails,kev,vkev,vuln
http:
- method: GET
path:
- "{{BaseURL}}"
headers:
Accept: ../../../../../../../../etc/passwd{{
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
- 500
Suricata rules (network detection)
1 rule that alert on traffic matching this exploit: VEDAS CVE-2019-5418 Rails - Path Traversal. Add them to your Suricata rule set and reload.
Show the rules
alert http $EXTERNAL_NET any -> $HTTP_SERVERS $HTTP_PORTS (msg:"VEDAS CVE-2019-5418 Rails - Path Traversal"; flow:established,to_client; file.data; content:"root:"; nocase; fast_pattern; classtype:web-application-attack; reference:cve,CVE-2019-5418; reference:url,https://www.exploit.observer/?keyword=CVE-2019-5418&match=exact; reference:url,https://subdomain.center/?engine=ammonites&keyword=rails&match=exact; sid:1011242; rev:1;)
References
Vendor advisories and patches
- RHSA-2019:0796 (vendor-advisory, x_refsource_REDHAT)
- openSUSE-SU-2019:1344 (vendor-advisory, x_refsource_SUSE)
- FEDORA-2019-1cfe24db5c (vendor-advisory, x_refsource_FEDORA)
- RHSA-2019:1149 (vendor-advisory, x_refsource_REDHAT)
- RHSA-2019:1147 (vendor-advisory, x_refsource_REDHAT)
- RHSA-2019:1289 (vendor-advisory, x_refsource_REDHAT)
Exploits and technical analysis
- 46585 (exploit, x_refsource_EXPLOIT-DB)
Government sources
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-5418 (government-resource)
Other references
- http://packetstormsecurity.com/files/152178/Rails-5.2.1-Arbitrary-File-Content-Disclosure.html (x_refsource_MISC)
- [oss-security] 20190322 [CVE-2019-5418] Amendment: Possible Remote Code Execution Exploit in Action View (mailing-list, x_refsource_MLIST)
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/ (x_refsource_CONFIRM)
- https://groups.google.com/forum/#%21topic/rubyonrails-security/pFRKI96Sm8Q (x_refsource_CONFIRM)
- [debian-lts-announce] 20190331 [SECURITY] [DLA 1739-1] rails security update (mailing-list, x_refsource_MLIST)
- https://web.archive.org/web/20190313201629/https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/
Other databases
Where this comes from
This advisory is generated automatically by VEDAS from: CVE.org record, CISA KEV, cve-scores (EPSS and VEDAS), Exploit Observer, vedas-signatures. Text in quotes is reproduced from the source; everything else is a fixed template filled with source fields. Nothing here is written by a language model. Check the vendor advisory before acting, and read how VEDAS and Exploit Observer work, and their limits.