vulnerability
Ruby on Rails Ruby on Rails: CVE-2019-5420: Improper Neutralization of Special Elements used in a Command
| Severity | CVSS | Published | Added | Modified |
|---|---|---|---|---|
| 7 | (AV:N/AC:L/Au:N/C:P/I:P/A:P) | Mar 27, 2019 | Jan 3, 2020 | May 6, 2026 |
Severity
7
CVSS
(AV:N/AC:L/Au:N/C:P/I:P/A:P)
Published
Mar 27, 2019
Added
Jan 3, 2020
Modified
May 6, 2026
Description
A remote code execution vulnerability in development mode Rails less than5.2.2.1, less than6.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.
Solution
ruby-on-rails-upgrade-latest
References
- CVE-2019-5420
- https://attackerkb.com/topics/CVE-2019-5420
- http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html
- 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/
- https://www.exploit-db.com/exploits/46785/
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-0385
- CWE-77
- CWE-330
- EUVD-EUVD-2019-0385
Rapid7 Labs
2026 Global Threat Landscape Report
The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.