CVE-2019-5420
CRITICAL 9.8CVSS 3.1Use of Insufficiently Random Values in Railties Allows Remote Code Execution
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
- 27 Mar 2019
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-330CWE-77
- Also known as
- GHSA-m42h-mh85-4qgc
- Sources
- NVDJSONOSV GHSA-m42h-mh85-4qgcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* |
< 5.2.2.1 | 5.2.2.1 |
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:6.0.0:beta1:*:*:*:*:*:* |
= 6.0.0 | |
| NVD | rubyonrails | railscpe:2.3:a:rubyonrails:rails:6.0.0:beta2:*:*:*:*:*:* |
= 6.0.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* |
= 30 | |
| OSV | RubyGems | railties | >= 5.2.0, < 5.2.2.1 | 5.2.2.1 |
References
- http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html · Exploit, Third Party Advisory, VDB Entry, WEB
- https://groups.google.com/forum/#%21topic/rubyonrails-security/IsQKvDqZdKw
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/ · Patch, Vendor Advisory, WEB
- https://www.exploit-db.com/exploits/46785/ · Exploit, Third Party Advisory, VDB Entry, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-5420 · ADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/railties/CVE-2019-5420.yml · WEB
- https://groups.google.com/forum/#!topic/rubyonrails-security/IsQKvDqZdKw · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 27 Mar 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 Mar 2019)