{"id":"CVE-2019-5420","url":"https://www.cyber-defence.io/tools/cve/CVE-2019-5420","generatedAt":"2026-11-05T03:06:37.895Z","title":"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.","description":"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.","published":"2019-03-27T14:29:02.000Z","lastModified":"2026-06-17T02:37:39.000Z","status":"Modified","sourceIdentifier":"support@hackerone.com","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-77","CWE-330"],"affected":["rubyonrails/rails","debian/debian linux","fedoraproject/fedora"],"epss":{"score":0.8933,"percentile":0.99783,"date":"2026-11-03","history":[{"date":"2026-09-24","score":0.89687,"percentile":0.99785}]},"kev":{"listed":false},"exploits":{"count":1,"verified":true,"firstPublished":"2019-05-02","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":46785,"kind":"exploit","title":"Ruby On Rails - DoubleTap Development Mode secret_key_base Remote Code Execution (Metasploit)","url":"https://www.exploit-db.com/exploits/46785","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/linux/remote/46785.rb","file":"exploits/linux/remote/46785.rb","published":"2019-05-02","added":"2019-05-02","updated":"2019-05-02","author":"Metasploit","type":"remote","platform":"linux","port":3000,"verified":true,"codes":["CVE-2019-5420"],"tags":"Metasploit Framework (MSF)","aliases":null,"applicationUrl":null,"screenshotUrl":null,"referenceUrl":"https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/rails_double_tap.rb"}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 89.3%, higher than 100% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"support@hackerone.com"},{"url":"https://groups.google.com/forum/#%21topic/rubyonrails-security/IsQKvDqZdKw","source":"support@hackerone.com"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/","source":"support@hackerone.com"},{"url":"https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/","tags":["Patch","Vendor Advisory"],"source":"support@hackerone.com"},{"url":"https://www.exploit-db.com/exploits/46785/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"support@hackerone.com"},{"url":"http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://groups.google.com/forum/#%21topic/rubyonrails-security/IsQKvDqZdKw","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/","tags":["Patch","Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.exploit-db.com/exploits/46785/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-5420","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}