Rails vulnerabilitiesAnd the versions its exploited flaws hit.
Rails is made by Rubyonrails. We track 113 published vulnerabilities listed under that exact name, across 287 versions. 3 of them are on the list of flaws known to be exploited, the newest added on 7 July 2025. Rubyonrails lists newer releases under their own names, such as Rails Html Sanitizers, so check those pages too.
The most recent Rails flaw added to the known-exploited list is CVE-2019-5418, on 7 July 2025. We keep watching the known-exploited list.
Is Rails listed under other names? Yes.
Rubyonrails also lists Rails under more specific names, such as Rails Html Sanitizers. Flaws listed only under those names are counted on their own pages, not here. If you run one of these, open its page for its own exploited flaws.
Which versions of Rails do the exploited flaws hit?
Each exploited flaw lists the versions it affects, usually as ranges. "3.0.0 to before 4.2.11.1" means from 3.0.0 up to, but not including, 4.2.11.1. Find your version, then patch.
- CVE-2019-5418Exploited list, 7 Jul 2025
Rails Ruby on Rails Path Traversal Vulnerability
3.0.0 to before 4.2.11.15.0.0 to before 5.0.7.25.1.0 to before 5.1.6.25.2.0 to before 5.2.2.1 - CVE-2014-0130Exploited list, 25 Mar 2022
Ruby on Rails Directory Traversal Vulnerability
before 3.2.184.0.0 to before 4.0.54.1.0 to before 4.1.1 - CVE-2016-0752Exploited list, 25 Mar 2022
Ruby on Rails Directory Traversal Vulnerability
before 3.2.22.14.0.0 to before 4.1.14.14.2.0 to before 4.2.5.15.0.0-beta1
Which Rails vulnerabilities are being exploited?
3 flaws are on the government list of vulnerabilities known to be exploited. These are the ones criminals are using now, so they go first, whatever their severity score says.
- 7.5Rails Ruby on Rails Path Traversal Vulnerability
Rails Ruby on Rails contains a path traversal vulnerability in Action View.
- 7.5Ruby on Rails Directory Traversal Vulnerability
Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the implicit-render implementation in Ruby on Rails allows remote attackers to read arbitrary files via a crafted request.
- 7.5Ruby on Rails Directory Traversal Vulnerability
Directory traversal vulnerability in Action View in Ruby on Rails allows remote attackers to read arbitrary files.
Which Rails flaws are most likely to be used?
Ranked by the latest exploit-likelihood forecast: the chance each flaw is used in an attack in the next 30 days. A high severity score on its own doesn't tell you that. Flaws shared by many other makers' products are left out.
- >99%CVE-2013-0156High
active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before 3.0.19, 3.1.x before 3.1.10, and 3.2.x before 3.2.11 does not properly restrict casts of string values, which allows remote...
- 96%CVE-2013-0333High
lib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not properly convert JSON data to YAML data for processing by a YAML parser, which allows remote attackers to...
- 96%
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...
- 89%CVE-2019-5420Critical
A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess the automatically generated development mode secret token.
- 87%CVE-2021-22881Medium
The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an open redirect vulnerability.
- 82%CVE-2020-8163High
The is a code injection vulnerability in versions of Rails prior to 5.0.1 that wouldallow an attacker who controlled the `locals` argument of a `render` call to perform a RCE.
- 81%CVE-2016-2098High
Action Pack in Ruby on Rails before 3.2.22.2, 4.x before 4.1.14.2, and 4.2.x before 4.2.5.2 allows remote attackers to execute arbitrary Ruby code by leveraging an application's unrestricted use of the render method.
- 67%CVE-2020-8264Medium
In actionpack gem >= 6.0.0, a possible XSS vulnerability exists when an application is running in development mode allowing an attacker to send or embed (in another page) a specially crafted URL which can allow the...
- 54%
Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the implicit-render implementation in Ruby on Rails before 3.2.18, 4.0.x before 4.0.5, and 4.1.x before 4.1.1, when certain route...
Running Rails? We'll keep checking.
Looking flaws up one at a time doesn't scale. Tell us what you run once, and we tell you which flaws matter to you, in what order, and keep watching for new ones.
- Tell us what you runPick your software from a list, or let us work it out from your website.
- We match it to every flawOver 400,000 published flaws, checked against your list.
- Ranked by real-world riskA 0 to 100 score, led by evidence criminals are using it.
- Told as soon as we knowAn alert by email, in the app or by webhook to your own tools.
Free plan, no card needed. Nothing to install.
1 flaw being exploited affects software Acme tracks
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.
- Matched to
- Rails on Acme's software list
- What to do
- Patch first, then check for signs of use
Sent to the alert recipients Acme chose. Also in the app and to Acme's webhook.
We track 113 published vulnerabilities listed under the name Rails, across 287 versions. The most recent Rails flaw added to the known-exploited list is CVE-2019-5418, on 7 July 2025.
3 are on the list of flaws known to be exploited. The most recently added are CVE-2019-5418, CVE-2014-0130 and CVE-2016-0752.
Rubyonrails also lists Rails under more specific names, such as Rails Html Sanitizers. Flaws listed only under those names are counted on their own pages, not here. Open the release you run to see its own list.
Each flaw names its own versions, usually as ranges. The newest, CVE-2019-5418, affects 3.0.0 to before 4.2.11.1, 5.0.0 to before 5.0.7.2, 5.1.0 to before 5.1.6.2, 5.2.0 to before 5.2.2.1. The versions for every exploited flaw are listed on this page.
Create a Precursor Intelligence account and track Rails. We match it against every published flaw, give each one a risk score from 0 to 100 and keep watching, so you hear about new ones as soon as we know, by email, in the app or by webhook.