{"id":"CVE-2019-5420","details":"A remote code execution vulnerability in development mode Rails \u003c5.2.2.1, \u003c6.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.","aliases":["GHSA-m42h-mh85-4qgc"],"modified":"2026-04-10T04:19:27.924662Z","published":"2019-03-27T14:29:01.720Z","related":["SUSE-SU-2020:3036-1","SUSE-SU-2020:3147-1","SUSE-SU-2020:3160-1","openSUSE-SU-2020:1993-1","openSUSE-SU-2020:2000-1","openSUSE-SU-2024:10589-1"],"references":[{"type":"WEB","url":"https://groups.google.com/forum/#%21topic/rubyonrails-security/IsQKvDqZdKw"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/"},{"type":"FIX","url":"https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/"},{"type":"EVIDENCE","url":"http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/46785/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rails/rails","events":[{"introduced":"0"},{"fixed":"e69ff43060c1194d2a3bd9b8d9e23f3ae26b84b5"},{"introduced":"0"},{"last_affected":"5a0230c67f852fb21173f99647e76336897446c1"},{"introduced":"0"},{"last_affected":"5e6e505083c2b0caf85b2f86c6be3ff3d8750857"},{"introduced":"0"},{"last_affected":"dd8f7185faeca6ee968a6e9367f6d8601a83b8db"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"5.2.2.1"},{"introduced":"0"},{"last_affected":"6.0.0-beta1"},{"introduced":"0"},{"last_affected":"6.0.0-beta2"},{"introduced":"0"},{"last_affected":"8.0"}]}}],"versions":["v0.10.0","v0.10.1","v0.11.0","v0.11.1","v0.12.0","v0.13.0","v0.13.1","v0.14.1","v0.14.3","v0.9.1","v0.9.2","v0.9.3","v0.9.4","v0.9.4.1","v0.9.5","v1.1.0","v1.1.0_RC1","v1.1.1","v2.0.0","v2.0.0_PR","v2.0.0_RC1","v2.0.0_RC2","v2.0.1","v3.0.0.beta.3","v3.0.0.beta3","v3.1.0.beta1","v3.1.0.rc1","v3.2.0.rc1","v4.0.0.beta1","v4.0.0.rc1","v4.2.0.beta1","v5.0.0.beta1","v5.0.0.beta2","v5.0.0.beta4","v5.1.0.beta1","v5.2.0.rc1","v5.2.1.rc1","v5.2.2","v5.2.2.rc1","v6.0.0.beta1","v6.0.0.beta2","v6.1.0.rc1","v7.0.0.alpha1","v7.0.0.alpha2","v7.1.0.beta1","v8.0.0","v8.0.0.beta1","v8.0.0.rc1","v8.0.0.rc2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-5420.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"30"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}