CVE-2019-5420: A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker t
CVE-2019-5420 is a critical-severity flaw (CVSS 9.8) affecting rails, debian linux, fedora. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: knqyf263/CVE-2019-5420 (8 stars)
- GitHub PoC: j4k0m/CVE-2019-5420 (5 stars)
- GitHub PoC: laffray/ruby-RCE-CVE-2019-5420- (5 stars)
- Write-up: hackerone.com/reports/473888
- Write-up: www.exploit-db.com/exploits/46785/
- GitHub PoC: AnasTaoutaou/CVE-2019-5420
- Exploit-DB: Ruby On Rails - DoubleTap Development Mode secret_key_base Remote Code Execution (RCE) (Metasploit)
- Metasploit: Ruby On Rails DoubleTap Development Mode secret_key_base Vulnerability
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2019-5420?
rails: upgrade to 5.2.2.1; debian linux: mitigate or apply the listed mitigation; fedora: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2019-5420 being exploited?
CVE-2019-5420 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2019-5420 affect?
CVE-2019-5420 affects rails, debian linux, fedora. Severity is critical (CVSS 9.8). 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 i
How urgent is CVE-2019-5420?
Priority 74/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action; On your watchlist
Software pages
Ruby on Rails vulnerabilities · Debian vulnerabilities
Related CVEs
- CVE-2023-22795 HIGH 7.5 UPGRADE MITIGATE A regular expression based DoS vulnerability in Action Dispatch <6.1.7.1 and <7.0.4.1 related to the If-None-M
- CVE-2023-22792 HIGH 7.5 UPGRADE A regular expression based DoS vulnerability in Action Dispatch <6.0.6.1,< 6.1.7.1, and <7.0.4.1
- CVE-2026-33167 MEDIUM 6.1 UPGRADE Action Pack is a Rubygem for building web applications on the Rails framework
- CVE-2026-33195 CRITICAL 9.8 UPGRADE Active Storage allows users to attach cloud and local files in Rails applications
- CVE-2026-33658 MEDIUM 6.5 UPGRADE Active Storage allows users to attach cloud and local files in Rails applications