CVE-2019-5420Rails Command Injection
Use of Insufficiently Random Values in Railties Allows Remote Code Execution
Published Mar 13, 2019 · Updated Oct 24, 2026 · Also known as DEBIAN-CVE-2019-5420, GHSA-m42h-mh85-4qgc
Key Facts
Patch immediately- CVE-2019-5420 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Rails (Rubyonrails), Debian Linux, Fedora (Fedoraproject) and 5 more products.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 89% probability of exploitation in the next 30 days.
- Fixed versions are available, including Rails 2:5.2.2.1+dfsg-1, Rails 5.2.2.1, railties 5.2.2.1.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
89%
Higher than 99.7% of all scored CVEs
Exploit maturity
Weaponized
ATLAS score
73/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Weaponized
Public exploit code
2
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
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.
Affected Products
48 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| RailsRubyonrails | 6.0.0-beta1, 6.0.0-beta2 | 5.2.2.1 |
| Debian LinuxDebian | 8.0 | n/a |
| FedoraFedoraproject | 30 | n/a |
| railtiesrubygems | >= 5.2.0 | 5.2.2.1 |
| rmt-serveropensuse | See advisory | 2.6.13-1.1 |
Patched Releases
Rails
2:5.2.2.1+dfsg-1, 5.2.2.1
railties
5.2.2.1
rmt-server
2.6.13-1.1, 2.6.5-3.18.1, 2.6.5-3.3.1, 2.6.5-3.34.1, 2.6.5-lp151.2.18.2, 2.6.5-lp152.2.3.1
rmt-server-config
2.6.13-1.1, 2.6.5-3.18.1, 2.6.5-3.3.1, 2.6.5-3.34.1, 2.6.5-lp151.2.18.2, 2.6.5-lp152.2.3.1
rmt-server-pubcloud
2.6.13-1.1, 2.6.5-lp151.2.18.2, 2.6.5-lp152.2.3.1
Timeline
Publicly disclosed
Mar 13, 2019
Last updated
Oct 24, 2026
Weakness Type
- CWE-77 Improper Neutralization of Special Elements used in a Command
- CWE-330 Use of Insufficiently Random Values
- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
References
- advisorynvd.nist.gov · CVE-2019-5420
- advisorysecurity-tracker.debian.org · CVE-2019-5420
- advisorybugzilla.suse.com · 1165548
- advisorybugzilla.suse.com · 1168554
- advisorybugzilla.suse.com · 1172177
FAQ
Common Questions.
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.
Affected: Rails (Rubyonrails) versions 6.0.0-beta1, 6.0.0-beta2; Debian Linux versions 8.0; Fedora (Fedoraproject) versions 30, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Rails 2:5.2.2.1+dfsg-1, Rails 5.2.2.1, railties 5.2.2.1.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2019-5420 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo