{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2019-5420","id":"CVE-2019-5420","title":"Use of Insufficiently Random Values in Railties Allows Remote Code Execution","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.","descriptionLong":"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-27T13:48:13.000Z","updated":"2026-10-24T10:30:50.644524754Z","reserved":"2019-01-04T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"hackerone","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":["Rails https://github.com/rails/rails"],"affectedProducts":[{"vendor":"Rails","product":"https://github.com/rails/rails","defaultStatus":null,"versions":[{"status":"affected","version":"5.2.2.1"},{"status":"affected","version":"6.0.0.beta3"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"railties","purl":"pkg:gem/railties","ranges":[">=5.2.0 <5.2.2.1"],"fixed":["5.2.2.1"],"advisory":"GHSA-m42h-mh85-4qgc"}],"cwes":["CWE-77","CWE-330"],"aliases":["GHSA-m42h-mh85-4qgc"],"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","x_transferred","Patch","Vendor Advisory","fix"]},{"url":"https://groups.google.com/forum/#%21topic/rubyonrails-security/IsQKvDqZdKw","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence","web"]},{"url":"https://www.exploit-db.com/exploits/46785/","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-5420","tags":["advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/railties/CVE-2019-5420.yml","tags":["web"]},{"url":"https://groups.google.com/forum/#!topic/rubyonrails-security/IsQKvDqZdKw","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA","tags":["web"]},{"url":"https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released","tags":["web"]},{"url":"https://www.exploit-db.com/exploits/46785","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.8933,"epssPercentile":0.99788,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2019-5420","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-5420","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2019-5420","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-m42h-mh85-4qgc","ok":true,"note":"GHSA-m42h-mh85-4qgc"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-5420","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["ruby"],"critical":["CVSS 9.8 in a widely used technology","EPSS 89% with CVSS 9.8"],"attention":null}