Rails vulnerabilitiesAnd the versions its exploited flaws hit.

Product3 known exploited287 versions
The short answer

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.

Check your version

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.

Other names

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.

Versions

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
Known exploited

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.

  1. 7.5
    CVE-2019-5418HighKnown exploited
    Rails Ruby on Rails Path Traversal Vulnerability

    Rails Ruby on Rails contains a path traversal vulnerability in Action View.

    Chance of use99%Known exploited since7 Jul 2025
  2. 7.5
    CVE-2014-0130HighKnown exploited
    Ruby 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.

    Chance of use54%Known exploited since25 Mar 2022
  3. 7.5
    CVE-2016-0752HighKnown exploited
    Ruby on Rails Directory Traversal Vulnerability

    Directory traversal vulnerability in Action View in Ruby on Rails allows remote attackers to read arbitrary files.

    Chance of use96%Known exploited since25 Mar 2022
Exploit likelihood

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.

50% or more10% to 49%Under 10%
  1. >99%

    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...

    CVSS7.5Published13 Jan 2013
  2. 96%

    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...

    CVSS7.5Published30 Jan 2013
  3. 96%
    CVE-2016-0752HighKnown exploited

    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...

    CVSS7.5Published16 Feb 2016
  4. 89%

    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.

    CVSS9.8Published27 Mar 2019
  5. 87%

    The Host Authorization middleware in Action Pack before 6.1.2.1, 6.0.3.5 suffers from an open redirect vulnerability.

    CVSS6.1Published11 Feb 2021
  6. 82%

    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.

    CVSS8.8Published2 Jul 2020
  7. 81%

    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.

    CVSS7.3Published7 Apr 2016
  8. 67%

    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...

    CVSS6.1Published6 Jan 2021
  9. 54%
    CVE-2014-0130HighKnown exploited

    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...

    CVSS7.5Published7 May 2014
Precursor Intelligence

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.

  1. Tell us what you runPick your software from a list, or let us work it out from your website.
  2. We match it to every flawOver 400,000 published flaws, checked against your list.
  3. Ranked by real-world riskA 0 to 100 score, led by evidence criminals are using it.
  4. 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.

FAQ

Common questions, answered plainly.

Something else? Talk to the team →

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.