CVE-2019-5420
publishedrubygem-rails: Weak secret token leading to possible code execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Rails | — | https://github.com/rails/rails5.2.2.1 · 6.0.0.beta3 | Affected | Not stated | hackerone |
| SUSE / openSUSE | SLE-15 | rmt-serveraarch64 | Advisory build | 2.6.5-3.34.1 | SUSE-SU-2020:3147-1 |
| SUSE / openSUSE | SLE-15 | rmt-serverppc64le | Advisory build | 2.6.5-3.34.1 | SUSE-SU-2020:3147-1 |
| SUSE / openSUSE | SLE-15 | rmt-servers390x | Advisory build | 2.6.5-3.34.1 | SUSE-SU-2020:3147-1 |
| SUSE / openSUSE | SLE-15 | rmt-serverx86_64 | Advisory build | 2.6.5-3.34.1 | SUSE-SU-2020:3147-1 |
| SUSE / openSUSE | SLE-15 | rmt-server-configaarch64 | Advisory build | 2.6.5-3.34.1 | SUSE-SU-2020:3147-1 |
| SUSE / openSUSE | SLE-15 | rmt-server-configppc64le | Advisory build | 2.6.5-3.34.1 | SUSE-SU-2020:3147-1 |
| SUSE / openSUSE | SLE-15 | rmt-server-configs390x | Advisory build | 2.6.5-3.34.1 | SUSE-SU-2020:3147-1 |
Show 43 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15 | rmt-server-configx86_64 | Advisory build | 2.6.5-3.34.1 | SUSE-SU-2020:3147-1 |
| SUSE / openSUSE | SLE-15-SP1 | rmt-serveraarch64 | Advisory build | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SUSE / openSUSE | SLE-15-SP1 | rmt-serverppc64le | Advisory build | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SUSE / openSUSE | SLE-15-SP1 | rmt-servers390x | Advisory build | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SUSE / openSUSE | SLE-15-SP1 | rmt-serverx86_64 | Advisory build | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SUSE / openSUSE | SLE-15-SP1 | rmt-server-configaarch64 | Advisory build | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SUSE / openSUSE | SLE-15-SP1 | rmt-server-configppc64le | Advisory build | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SUSE / openSUSE | SLE-15-SP1 | rmt-server-configs390x | Advisory build | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SUSE / openSUSE | SLE-15-SP1 | rmt-server-configx86_64 | Advisory build | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SUSE / openSUSE | SLE-15-SP1 | rmt-server-pubcloudaarch64 | Advisory build | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SUSE / openSUSE | SLE-15-SP1 | rmt-server-pubcloudppc64le | Advisory build | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SUSE / openSUSE | SLE-15-SP1 | rmt-server-pubclouds390x | Advisory build | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SUSE / openSUSE | SLE-15-SP1 | rmt-server-pubcloudx86_64 | Advisory build | 2.6.5-3.18.1 | SUSE-SU-2020:3160-1 |
| SUSE / openSUSE | SLE-15-SP2 | rmt-serveraarch64 | Advisory build | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SUSE / openSUSE | SLE-15-SP2 | rmt-serverppc64le | Advisory build | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SUSE / openSUSE | SLE-15-SP2 | rmt-servers390x | Advisory build | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SUSE / openSUSE | SLE-15-SP2 | rmt-serverx86_64 | Advisory build | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SUSE / openSUSE | SLE-15-SP2 | rmt-server-configaarch64 | Advisory build | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SUSE / openSUSE | SLE-15-SP2 | rmt-server-configppc64le | Advisory build | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SUSE / openSUSE | SLE-15-SP2 | rmt-server-configs390x | Advisory build | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SUSE / openSUSE | SLE-15-SP2 | rmt-server-configx86_64 | Advisory build | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SUSE / openSUSE | SLE-15-SP2 | rmt-server-pubcloudaarch64 | Advisory build | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SUSE / openSUSE | SLE-15-SP2 | rmt-server-pubcloudppc64le | Advisory build | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SUSE / openSUSE | SLE-15-SP2 | rmt-server-pubclouds390x | Advisory build | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SUSE / openSUSE | SLE-15-SP2 | rmt-server-pubcloudx86_64 | Advisory build | 2.6.5-3.3.1 | SUSE-SU-2020:3036-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | rmt-serverx86_64 | Advisory build | 2.6.5-lp151.2.18.2 | OPENSUSE-SU-2020:2000-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | rmt-server-configx86_64 | Advisory build | 2.6.5-lp151.2.18.2 | OPENSUSE-SU-2020:2000-1 |
| SUSE / openSUSE | openSUSE-Leap-15.1 | rmt-server-pubcloudx86_64 | Advisory build | 2.6.5-lp151.2.18.2 | OPENSUSE-SU-2020:2000-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | rmt-serverx86_64 | Advisory build | 2.6.5-lp152.2.3.1 | OPENSUSE-SU-2020:1993-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | rmt-server-configx86_64 | Advisory build | 2.6.5-lp152.2.3.1 | OPENSUSE-SU-2020:1993-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | rmt-server-pubcloudx86_64 | Advisory build | 2.6.5-lp152.2.3.1 | OPENSUSE-SU-2020:1993-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rmt-serveraarch64 | Advisory build | 2.6.13-1.1 | OPENSUSE-SU-2024:10589-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rmt-serverppc64le | Advisory build | 2.6.13-1.1 | OPENSUSE-SU-2024:10589-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rmt-servers390x | Advisory build | 2.6.13-1.1 | OPENSUSE-SU-2024:10589-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rmt-serverx86_64 | Advisory build | 2.6.13-1.1 | OPENSUSE-SU-2024:10589-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rmt-server-configaarch64 | Advisory build | 2.6.13-1.1 | OPENSUSE-SU-2024:10589-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rmt-server-configppc64le | Advisory build | 2.6.13-1.1 | OPENSUSE-SU-2024:10589-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rmt-server-configs390x | Advisory build | 2.6.13-1.1 | OPENSUSE-SU-2024:10589-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rmt-server-configx86_64 | Advisory build | 2.6.13-1.1 | OPENSUSE-SU-2024:10589-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rmt-server-pubcloudaarch64 | Advisory build | 2.6.13-1.1 | OPENSUSE-SU-2024:10589-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rmt-server-pubcloudppc64le | Advisory build | 2.6.13-1.1 | OPENSUSE-SU-2024:10589-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rmt-server-pubclouds390x | Advisory build | 2.6.13-1.1 | OPENSUSE-SU-2024:10589-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rmt-server-pubcloudx86_64 | Advisory build | 2.6.13-1.1 | OPENSUSE-SU-2024:10589-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Rails | https://github.com/rails/rails | 5.2.2.1 (affected)6.0.0.beta3 (affected) | hackerone · cna |
Weaknesses
1- CWE-77 Command Injection - Generic (CWE-77)
References
5- 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
- FEDORA-2019-1cfe24db5c 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/
- 46785 https://www.exploit-db.com/exploits/46785/
Provider assertions
2hackerone · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 30dfddcc65fbb8bdf09474e160103ca23f1ce0a3829ea7e664c27b415f657746
- Ingested
- 23 Sep 2026, 07:47:16 UTC
- Source record
- Official CVE record