CVE-2019-5420Rubyonrails Rails
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · Rubyonrails · Rubyonrails Rails We alert you by email or Slack (account required).
- Priority
- 83
- CVSS 3.1
- 9.8
- EPSS
- 89.3% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- Published
- Mar 27, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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. This secret token can be used in combination with other Rails internals to escalate to a remote code execution exploit.
What to do
- Apply the vendor's security update for Rails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | railties |
≥ 5.2.0 < 5.2.2.1 |
5.2.2.1 |
gem "railties", ">= 5.2.2.1" |
Per OSV / GitHub Advisories (GHSA-m42h-mh85-4qgc). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rubyonrails | rails | < 5.2.2.1 |
| rubyonrails | rails | 6.0.0 |
| rubyonrails | rails | 6.0.0 |
| debian | debian_linux | 8.0 |
| fedoraproject | fedora | 30 |
Official sources
References
Links published by the sources. Open them with care.
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- groups.google.com
- lists.fedoraproject.org
- weblog.rubyonrails.org Patch Vendor Advisory
- www.exploit-db.com Exploit Third Party Advisory VDB Entry