# Rails vulnerabilities

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

Canonical page: https://www.precursorintelligence.com/product/rubyonrails/rails

## At a glance

- **Made by:** [Rubyonrails](https://www.precursorintelligence.com/vendors/rubyonrails)
- **Published vulnerabilities:** 113
- **Known to be exploited:** 3 (listed under the name Rails)
- **Versions tracked:** 287
- **Most recently added to the known-exploited list:** [CVE-2019-5418](https://www.precursorintelligence.com/what-is/cve-2019-5418), 7 July 2025. We keep watching the list.

## Is Rails listed under other names?

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.

- [Rails Html Sanitizers](https://www.precursorintelligence.com/product/rubyonrails/rails_html_sanitizers): 10 published vulnerabilities

## Which versions of Rails do the exploited flaws hit?

Each exploited flaw lists the versions it affects, as published. "3.0.0 to before 4.2.11.1" means from 3.0.0 up to, but not including, 4.2.11.1.

- [CVE-2019-5418](https://www.precursorintelligence.com/what-is/cve-2019-5418) (Rails Ruby on Rails Path Traversal Vulnerability): 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
- [CVE-2014-0130](https://www.precursorintelligence.com/what-is/cve-2014-0130) (Ruby on Rails Directory Traversal Vulnerability): before 3.2.18, 4.0.0 to before 4.0.5, 4.1.0 to before 4.1.1
- [CVE-2016-0752](https://www.precursorintelligence.com/what-is/cve-2016-0752) (Ruby on Rails Directory Traversal Vulnerability): before 3.2.22.1, 4.0.0 to before 4.1.14.1, 4.2.0 to before 4.2.5.1, 5.0.0-beta1

## Which Rails vulnerabilities are being exploited?

3 flaws are on the government list of vulnerabilities known to be exploited, newest first:

- [CVE-2019-5418](https://www.precursorintelligence.com/what-is/cve-2019-5418): Rails Ruby on Rails Path Traversal Vulnerability. High, CVSS 7.5, chance of use in 30 days 99%, known exploited since 7 July 2025.
- [CVE-2014-0130](https://www.precursorintelligence.com/what-is/cve-2014-0130): Ruby on Rails Directory Traversal Vulnerability. High, CVSS 7.5, chance of use in 30 days 54%, known exploited since 25 March 2022.
- [CVE-2016-0752](https://www.precursorintelligence.com/what-is/cve-2016-0752): Ruby on Rails Directory Traversal Vulnerability. High, CVSS 7.5, chance of use in 30 days 96%, known exploited since 25 March 2022.

## 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):

- [CVE-2013-0156](https://www.precursorintelligence.com/what-is/cve-2013-0156): >99%, High (CVSS 7.5)
- [CVE-2013-0333](https://www.precursorintelligence.com/what-is/cve-2013-0333): 96%, High (CVSS 7.5)
- [CVE-2016-0752](https://www.precursorintelligence.com/what-is/cve-2016-0752): 96%, High (CVSS 7.5), known exploited
- [CVE-2019-5420](https://www.precursorintelligence.com/what-is/cve-2019-5420): 89%, Critical (CVSS 9.8)
- [CVE-2021-22881](https://www.precursorintelligence.com/what-is/cve-2021-22881): 87%, Medium (CVSS 6.1)
- [CVE-2020-8163](https://www.precursorintelligence.com/what-is/cve-2020-8163): 82%, High (CVSS 8.8)
- [CVE-2016-2098](https://www.precursorintelligence.com/what-is/cve-2016-2098): 81%, High (CVSS 7.3)
- [CVE-2020-8264](https://www.precursorintelligence.com/what-is/cve-2020-8264): 67%, Medium (CVSS 6.1)
- [CVE-2014-0130](https://www.precursorintelligence.com/what-is/cve-2014-0130): 54%, High (CVSS 7.5), known exploited

## Questions

### How many vulnerabilities does Rails have?

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.

### Which Rails vulnerabilities are being exploited?

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.

### Why are newer Rails flaws missing from this page?

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.

### Which versions of Rails do the exploited flaws affect?

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.

### How do I get alerts for Rails?

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.

## Running Rails?

Precursor Intelligence keeps checking for you:

- **Tell us what you run.** Pick your software from a list, or let us work it out from your website.
- **We match it to every flaw.** Over 400,000 published flaws, checked against your list.
- **Ranked by real-world risk.** Every flaw gets a 0 to 100 risk score, kept up to date, led by evidence criminals are using it.
- **Told as soon as we know.** An alert by email, in the app or by webhook to your own tools.

Start free (no card, nothing to install): https://www.precursorintelligence.com/register
Book a demo: https://www.precursorintelligence.com/contact

