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.
CVE-2019-5420
Score elevated to 9.8 because EPSS predicts 94% probability of exploitation within the next 30 days (top 0.1% of all CVEs). NVD baseline CVSS 9.8 retained for reference. Confidence: see factors.
- High exploitation likelihood — EPSS 92%
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 9.8
- EG Score
- 9.8(high)
- EPSS
- 99.8%
- KEV
- Not listed
Published
March 27, 2019
Last Modified
November 21, 2024
Advisory Details (4)
Auto-updated Jul 7, 2026Ruby On Rails - DoubleTap Development Mode secret_key_base Remote Code Execution (Metasploit) - Linux remote Exploit
https://www.exploit-db.com/exploits/46785/[SECURITY] Fedora 30 Update: rubygem-activemodel-5.2.3-2.fc30 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/Redirecting to Google Groups
https://groups.google.com/forum/#%21topic/rubyonrails-security/IsQKvDqZdKwAffected Packages
(1 across 1 ecosystem)
RubyGems(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| railties | 5.2.0 ... 5.2.2.rc1 (6 versions) | 5.2.2.1 | — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 3× in last 7d / 14× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-07 13:43 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-03 14:56 UTCOSV refresh
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-15 04:43 UTCOSV refresh
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 13:19 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
Show 6 moreShow fewer
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-27 21:22 UTCEG score recompute
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-24 16:47 UTCEPSS rescore
Publicly available exploits
(6 references)Working exploit code is in the public domain (1 Metasploit module) (4 GitHub PoCs) (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoClaffray/ruby-RCE-CVE-2019-5420-First seen Jul 2, 2022
Ruby反序列化命令执行漏洞(CVE-2019-5420)-vulfocus通关版
Open source ↗ - GitHub PoCj4k0m/CVE-2019-5420First seen Sep 6, 2021
A vulnerability can allow an attacker to guess the automatically generated development mode secret token.
Open source ↗ - GitHub PoCscumdestroy/CVE-2019-5420.rbFirst seen May 11, 2021
POC Exploit written in Ruby
Open source ↗ - Exploit-DBEDB-46785✓ verifiedFirst seen May 2, 2019
Ruby On Rails - DoubleTap Development Mode secret_key_base Remote Code Execution (Metasploit)
Open source ↗ - GitHub PoCknqyf263/CVE-2019-5420First seen Mar 21, 2019
CVE-2019-5420 (Ruby on Rails)
Open source ↗ - Metasploitexploit/multi/http/rails_double_tap✓ verifiedFirst seen Mar 13, 2019
Ruby On Rails DoubleTap Development Mode secret_key_base Vulnerability
Open source ↗
Frequently asked(5)
What is CVE-2019-5420?
When was CVE-2019-5420 disclosed?
Is CVE-2019-5420 actively exploited?
What is the CVSS score of CVE-2019-5420?
How do I remediate CVE-2019-5420?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2019-5420
Is Your Infrastructure Affected by CVE-2019-5420?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.