---
id: "CVE-2019-5418"
kind: "vulnerability"
aliases: ["CVE-2019-5418"]
title: "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\u2026"
severity: "high"
cvss: 7.5
epss: null
exploited: true
status: "open"
category: "runtime"
products: [{"name": "Rails Ruby on Rails", "fixed": [], "affected": "", "ecosystem": "vendor"}, {"name": "rubyonrails rails", "fixed": ["4.2.11.1"], "affected": ">= 3.0.0, < 4.2.11.1", "ecosystem": "vendor"}, {"name": "rubyonrails rails", "fixed": ["5.0.7.2"], "affected": ">= 5.0.0, < 5.0.7.2", "ecosystem": "vendor"}, {"name": "rubyonrails rails", "fixed": ["5.1.6.2"], "affected": ">= 5.1.0, < 5.1.6.2", "ecosystem": "vendor"}, {"name": "rubyonrails rails", "fixed": ["5.2.2.1"], "affected": ">= 5.2.0, < 5.2.2.1", "ecosystem": "vendor"}, {"name": "debian linux", "fixed": [], "affected": "= 8.0", "ecosystem": "vendor"}, {"name": "redhat cloudforms", "fixed": [], "affected": "= 4.7", "ecosystem": "vendor"}, {"name": "opensuse leap", "fixed": [], "affected": "= 15.0", "ecosystem": "vendor"}, {"name": "fedoraproject fedora", "fixed": [], "affected": "= 30", "ecosystem": "vendor"}, {"name": "redhat cloudforms", "fixed": [], "affected": "= 4.6", "ecosystem": "vendor"}, {"name": "redhat software collections", "fixed": [], "affected": "= 1.0", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["exploited", "rails", "ruby", "runtime", "self-hosted"]
not_affected_if: ["no-render-file-calls", "static-export"]
published_at: "2019-03-27T14:29:01+00:00"
first_seen_at: "2026-10-23T19:11:51+00:00"
updated_at: "2026-10-23T22:29:05+00:00"
sources: [{"source": "kev", "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2019-5418", "first_seen_at": "2026-10-23T19:11:51+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-5418", "first_seen_at": "2026-10-23T22:29:05+00:00"}]
---

# 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…

Ruby on Rails' Action View has a path traversal flaw: a crafted Accept header combined with a call to `render file:` lets an attacker render arbitrary files on the server. The attacker reads the contents of those files, such as config or secrets.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:Rails Ruby on Rails affected ? fixed ?
- vendor:rubyonrails rails affected >= 3.0.0, < 4.2.11.1 fixed 4.2.11.1
- vendor:rubyonrails rails affected >= 5.0.0, < 5.0.7.2 fixed 5.0.7.2
- vendor:rubyonrails rails affected >= 5.1.0, < 5.1.6.2 fixed 5.1.6.2
- vendor:rubyonrails rails affected >= 5.2.0, < 5.2.2.1 fixed 5.2.2.1
- vendor:debian linux affected = 8.0 fixed ?
- vendor:redhat cloudforms affected = 4.7 fixed ?
- vendor:opensuse leap affected = 15.0 fixed ?
- vendor:fedoraproject fedora affected = 30 fixed ?
- vendor:redhat cloudforms affected = 4.6 fixed ?
- vendor:redhat software collections affected = 1.0 fixed ?

## Timeline

- 2026-10-23T19:11:51+00:00 kev https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2019-5418
- 2026-10-23T22:29:05+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2019-5418

## From the sources

Rails Ruby on Rails contains a path traversal vulnerability in Action View. Specially crafted accept headers in combination with calls to `render file:` can cause arbitrary files on the target server to be rendered, disclosing the file contents.

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
