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
“—” beside the score: it is equal to NVD's CVSS score.
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2019-03-13. NVD baseline CVSS 9.8; sources differ by 0.0.
Also known asEUVD-2019-0385 (ENISA EUVD) · GHSA-m42h-mh85-4qgc (GitHub Security Advisories)Source: ENISA EUVD
- High exploitation likelihood — EPSS 89%
- Public exploit code is available (Metasploit, Exploit-DB, marked verified by Exploit-DB, other public proof-of-concept code)
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8CRITICALmedium confidence
- EG Risk
- 80EG Risk 80/100
EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.
How it’s computed (value × EchelonGraph’s weight)Severity98% × 45%Impact severity (EG Severity): CVSS 9.8 of 10. Never the KEV-floored or EPSS-lifted EG Score.Exploitation89% × 40%FIRST EPSS: the 30-day exploitation probability when EchelonGraph scored this CVE.Automatability0% × 15%CISA's BOD 26-04 default: no one has published Automatable for this CVE, and CISA treats it as “no” for a CVE not in KEV.SSVC (CISA's decision table, applied by EchelonGraph): Track at low, Track* at medium and Attend at high mission impact.Exploitation public PoC (exploit code on record) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). EchelonGraph holds no SSVC assessment of this CVE from CISA: none of these inputs is from Vulnrichment. EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 89%
- EPSS %ILE
- 99th
- KEV
- Not listed
What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)
The EG score (9.8): severity, escalated by confirmed exploitation. This CVE's 9.8 is its impact severity (EG Severity), not escalated.
- EG Severity
- 9.8 CRITICALCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.GitHub Security Advisory CVSS
- EG Likelihood
- 89% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-11-01). FIRST's exploitation probability, not an EchelonGraph model.
- Confirmed exploitation
- None on record (CISA KEV, EG-KEV Tier 1)Reported apart from the likelihood: an observed fact, not a probability.
- EG Priority
- SSVC Track* at medium mission impactTrack at low, Track* at medium and Attend at high mission impact.CISA BOD 26-04: 14 days if the affected system is publicly exposed; Fix on system upgrade if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.
SSVC (CISA's decision table, applied by EchelonGraph)Track at low, Track* at medium and Attend at high mission impact.
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation public PoC (exploit code on record) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). EchelonGraph holds no SSVC assessment of this CVE from CISA: none of these inputs is from Vulnrichment. EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)14 days if the affected system is publicly exposed; Fix on system upgrade if it is not.
The score's inputs: In CISA KEV no (CISA's KEV catalog) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). Where an input reads “CISA's BOD 26-04 default”, no one has published it for this CVE, and CISA's implementation guidance says: “If “Automatable” and “Technical Impact” information items about a CVE ID are not available and the CVE ID is not in the KEV Catalog, CISA will treat its values as “no” and “total,” respectively, until CISA or a third party provides metadata about the CVE ID. CISA will always provide the Vulnrichment data for a CVE ID listed in the KEV Catalog.” Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
Published
March 27, 2019
Last Modified
November 21, 2024
Advisory Details (4)
Auto-updated Oct 5, 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/IsQKvDqZdKwPatch Availability(1)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| rubygems | railties @ 5.2.2.1 (fixes >= 5.2.0, <= 5.2.2.0) | — | ghsa |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(5 across 5 ecosystems)
Debian:11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| rails | — |
| — |
Debian:12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| rails | — |
| — |
Debian:13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| rails | — |
| — |
Debian:14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| rails | — |
| — |
RubyGems(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| railties | 5.2.0 ... 5.2.2.rc1 (6 versions) |
| — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 12× in last 7d / 31× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. 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. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 10 repeat rows among the latest 89 are merged into the row they repeat.
- 2026-11-01 18:58 UTCEG score recompute
- 2026-11-01 18:58 UTCGHSA enrichmentGHSA-m42h-mh85-4qgc · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-01 08:39 UTCGHSA enrichmentGHSA-m42h-mh85-4qgc · GitHub severity CRITICAL · GitHub CVSS 9.8
- 2026-11-01 08:39 UTCEG score recompute
- 2026-10-31 18:36 UTCEG score recompute
- 2026-10-31 16:28 UTCEPSS rescoreEPSS 89% · 99th percentile
- 2026-10-30 18:09 UTCEG score recompute
- 2026-10-29 17:47 UTCEG score recompute
- 2026-10-28 17:24 UTCEG score recompute
- 2026-10-28 16:27 UTCEPSS rescoreEPSS 89% · 99th percentile
- 2026-10-27 16:58 UTCEG score recompute
- 2026-10-26 16:34 UTCEG score recompute
- 2026-10-25 16:27 UTCEPSS rescoreEPSS 89% · 99th percentile
- 2026-10-25 15:57 UTCEG score recompute
- 2026-10-24 15:31 UTCEG score recompute
- 2026-10-23 16:27 UTCEPSS rescoreEPSS 89% · 99th percentile
- 2026-10-23 15:05 UTCEG score recompute
- 2026-10-22 14:38 UTCEG score recompute
- 2026-10-21 16:27 UTCEPSS rescoreEPSS 89% · 99th percentile
- 2026-10-21 14:16 UTCEG score recompute
- 2026-10-20 13:45 UTCEG score recompute
- 2026-10-19 12:57 UTCEG score recompute
- 2026-10-18 09:44 UTCEG score recompute
- 2026-10-17 10:39 UTCEG score recompute
- 2026-10-16 10:14 UTCEG score recompute
Show 54 moreShow fewer
- 2026-10-15 09:51 UTCEG score recompute
- 2026-10-14 16:28 UTCEPSS rescoreEPSS 89% · 99th percentile
- 2026-10-14 06:01 UTCEG score recompute
- 2026-10-12 19:53 UTCEG score recompute
- 2026-10-12 00:17 UTCEG score recompute
- 2026-10-07 23:43 UTCEPSS rescoreEPSS 89% · 99th percentile
- 2026-10-03 14:22 UTCEPSS rescoreEPSS 89% · 99th percentile
- 2026-09-30 10:25 UTCEG score recompute
- 2026-09-28 13:46 UTCEPSS rescoreEPSS 89% · 99th percentile
- 2026-09-28 11:02 UTCOSV refresh
- 2026-09-26 15:54 UTCEPSS rescoreEPSS 90% · 99th percentile
- 2026-09-24 13:59 UTCEPSS rescoreEPSS 90% · 99th percentile
- 2026-09-22 14:43 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-09-21 20:28 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-09-18 19:23 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-09-16 14:04 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-09-11 14:48 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-09-08 14:34 UTCOSV refresh
- 2026-09-06 13:44 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-09-05 15:24 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-08-26 14:42 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-08-22 00:41 UTCOSV refresh
- 2026-08-19 17:00 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-08-12 13:47 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-08-06 05:51 UTCOSV refresh
- 2026-08-02 02:23 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-07-26 14:51 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-07-24 14:14 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-07-23 01:45 UTCEG score recompute
- 2026-07-22 22:27 UTCEG score recompute
- 2026-07-22 14:05 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-07-20 19:32 UTCOSV refresh
- 2026-07-15 16:55 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-07-07 13:43 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-07-06 16:25 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-07-04 06:28 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-07-03 14:56 UTCOSV refresh
- 2026-06-24 14:03 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-06-23 21:31 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-06-16 17:50 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-06-15 17:46 UTCEPSS rescoreEPSS 92% · 99th percentile
- 2026-06-15 04:43 UTCOSV refresh
- 2026-06-12 23:09 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-06-11 13:58 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-06-10 13:19 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-06-05 06:08 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-06-04 13:10 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-06-02 20:11 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-06-01 13:50 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-05-31 22:29 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-05-29 13:42 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-05-27 21:22 UTCEG score recompute
- 2026-05-26 07:17 UTCEPSS rescoreEPSS 94% · 99th percentile
- 2026-05-24 16:47 UTCEPSS rescoreEPSS 94% · 99th percentile
Publicly available exploits
(6 references)Public exploit code is referenced for this CVE (1 Metasploit module, 1 Exploit-DB entry, 4 GitHub PoCs). Defenders should treat patch urgency accordingly.
- Exploit-DBEDB-46785✓ verifiedPublished May 2, 2019
Ruby On Rails - DoubleTap Development Mode secret_key_base Remote Code Execution (Metasploit)
Open source ↗ - Metasploitexploit/multi/http/rails_double_tap✓ verifiedPublished May 1, 2019
Ruby On Rails DoubleTap Development Mode secret_key_base Vulnerability
Open source ↗ - GitHub PoClaffray/ruby-RCE-CVE-2019-5420-Published Jul 2, 2022
Ruby反序列化命令执行漏洞(CVE-2019-5420)-vulfocus通关版
Open source ↗ - GitHub PoCj4k0m/CVE-2019-5420Published 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.rbPublished May 11, 2021
POC Exploit written in Ruby
Open source ↗ - GitHub PoCknqyf263/CVE-2019-5420Published Mar 21, 2019
CVE-2019-5420 (Ruby on Rails)
Open source ↗
Related CVEs(same product + same CWE)
Same product
10 shownDebian:11:rails
- CVE-2013-0277EG 10.0EPSS p94HIGH
- CVE-2026-33195EG 9.8CRITICAL
- CVE-2022-32224EG 9.8CRITICAL
- CVE-2022-21831EG 9.8CRITICAL
- CVE-2020-8165EG 9.8EPSS p99CRITICAL
- CVE-2009-2422EG 9.8CRITICAL
- CVE-2026-66066EG 9.5EPSS p98CRITICAL
- CVE-2026-33202EG 9.1CRITICAL
- CVE-2021-22881NVD 6.1EG 9.0EPSS p100CRITICAL
- CVE-2020-8163NVD 8.8EG 9.0EPSS p100CRITICAL
Same CWE
10 shownCWE-330 · CWE-77
Frequently asked(5)
What is CVE-2019-5420?
When was CVE-2019-5420 made public?
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.