{"id":"CVE-2019-5420","published":"2019-03-27T13:48:13Z","modified":"2024-08-04T19:54:53Z","title":"A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess…","vendor":"Rails","product":"https://github.com/rails/rails","tier":"core","eol":null,"affectedVersions":[{"vendor":"Rails","product":"https://github.com/rails/rails","versions":["5.2.2.1","6.0.0.beta3"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"A remote code execution flaw in the development mode of Rails (versions before 5.2.2.1 and 6.0.0.beta3) lets an attacker guess the automatically generated development secret token, a weakness classed as command injection. The attacker needs only to reach a Rails application running in development mode, and the guessed token can then be combined with other Rails internals to achieve remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:16:23Z"},"cvss":null,"epss":{"score":0.8933,"percentile":0.99782,"date":"2026-10-28","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":1,"pulses":[{"name":"Thor-Lite Linux 64 (06.11.24) - enriched a bit more but not 'pruned'","url":"https://otx.alienvault.com/pulse/6668b85065eec626e4766a38","created":"2024-06-11"}],"provenance":"machine"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/","tags":["x_refsource_CONFIRM"]},{"url":"https://groups.google.com/forum/#%21topic/rubyonrails-security/IsQKvDqZdKw","tags":["x_refsource_CONFIRM"]},{"url":"http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html","tags":["x_refsource_MISC"]},{"url":"https://www.exploit-db.com/exploits/46785/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"RubyGems","package":"railties","vulnerableRanges":[">=5.2.0, <5.2.2.1"],"patched":["5.2.2.1"],"from":["GHSA-m42h-mh85-4qgc"],"provenance":"source"}],"advisories":[{"id":"GHSA-m42h-mh85-4qgc","url":"https://github.com/advisories/GHSA-m42h-mh85-4qgc","severity":"CRITICAL","ecosystem":"RubyGems","package":"railties","vulnerableRanges":[">=5.2.0, <5.2.2.1"],"patched":["5.2.2.1"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2019-0385","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-0385","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":46785,"url":"https://www.exploit-db.com/exploits/46785","title":"Ruby On Rails - DoubleTap Development Mode secret_key_base Remote Code Execution (Metasploit)","type":"remote","platform":"linux","date":"2019-05-02","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2019-05-02"},"pocGithub":{"count":9,"skipped":3,"earliest":"2019-03-21","earliestUrl":"https://github.com/knqyf263/CVE-2019-5420","repos":[{"name":"knqyf263/CVE-2019-5420","url":"https://github.com/knqyf263/CVE-2019-5420","stars":8,"created":"2019-03-21"},{"name":"j4k0m/CVE-2019-5420","url":"https://github.com/j4k0m/CVE-2019-5420","stars":5,"created":"2021-09-06"},{"name":"laffray/ruby-RCE-CVE-2019-5420-","url":"https://github.com/laffray/ruby-RCE-CVE-2019-5420-","stars":5,"created":"2022-07-02"},{"name":"scumdestroy/CVE-2019-5420.rb","url":"https://github.com/scumdestroy/CVE-2019-5420.rb","stars":3,"created":"2021-05-11"},{"name":"trickstersec/CVE-2019-5420","url":"https://github.com/trickstersec/CVE-2019-5420","stars":1,"created":"2022-03-14"}]},"metasploit":[{"name":"Ruby On Rails DoubleTap Development Mode secret_key_base Vulnerability","module":"exploit/multi/http/rails_double_tap","type":"exploit","disclosureDate":"2019-03-13","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_double_tap.rb"}],"first":{"date":"2019-03-13","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_double_tap.rb"},"provenance":"source"},"exploitRefs":["https://www.exploit-db.com/exploits/46785/","http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html","https://www.exploit-db.com/exploits/46785"],"flow":[],"timeline":[{"date":"2019-03-13","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2019-03-21, Exploit-DB 2019-05-02","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_double_tap.rb","provenance":"source"},{"date":"2019-03-27","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2019-5420","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":25.6,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.96,"detail":"percentile 0.9978"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD reference tagged Exploit; 1 Exploit-DB entry; 1 NVD exploit link; 1 advisory exploit reference; 9 PoC-in-GitHub repos; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":0.68,"detail":"1 pulse"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}