Skip to content
Emerging threatsCritical

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

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
ProductAffected versionsFixed in
RailsRubyonrails6.0.0-beta1, 6.0.0-beta25.2.2.1
Debian LinuxDebian8.0n/a
FedoraFedoraproject30n/a
railtiesrubygems>= 5.2.05.2.2.1
rmt-serveropensuseSee advisory2.6.13-1.1
3 more affected products in the full CVE brief

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

  1. Publicly disclosed

    Mar 13, 2019

  2. 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

15 more references in the full CVE brief

FAQ

Common Questions.

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

More vulnerabilities

Figures as of Dec 2, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.