Quick answers
- Is CVE-2019-5418 exploited in the wild?
- Yes. CVE-2019-5418 is known to be exploited in the wild, first recorded on 7 July 2025. Treat it as urgent.
- How severe is CVE-2019-5418?
- Critical severity, with a CVSS score of 3.1, published 13 March 2019.
- Which products and versions are affected?
- Ruby on Rails Rails < 5.2.2.1, < 5.1.6.2, < 5.0.7.2, < 4.2.11.1, v3; actionview (RubyGems) ECOSYSTEM:introduced=5.2.0,fixed=5.2.2.1.
- Is there a fix for CVE-2019-5418?
- Yes. actionview (RubyGems): upgrade to 5.2.2.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2019-5418 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2019-5418?
- Check whether you run Rails Ruby on Rails, Ruby on Rails Rails or actionview (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- actionview (RubyGems): upgrade to 5.2.2.1 or later
bundle update actionview
Technical details
A path traversal vulnerability exists in the Action View component of Ruby on Rails. The flaw is triggered when an application uses the `render file:` method in a way that interacts with user-supplied Accept headers. An unauthenticated remote attacker can provide a specially crafted Accept header to escape the intended directory and read arbitrary files from the server's filesystem. This vulnerability has been confirmed to be exploited in the wild and is addressed in versions 5.2.2.1, 5.1.6.2, 5.0.7.2, and 4.2.11.1.
Affected products
- Ruby on Rails Ruby on Rails < 5.2.2.1, < 5.1.6.2, < 5.0.7.2, < 4.2.11.1, v3
Identifiers
- CVE-2019-5418
- GHSA-86g5-2wh3-gc9j
Timeline
- 2019-03-13: patched: Vendor released security updates for multiple versions
- 2019-03-22: disclosed: Public disclosure of the vulnerability details
- 2025-07-07: kev added: Added to CISA Known Exploited Vulnerabilities catalog