CVE-2019-5420 in Debian Linux and 2 more products
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.
Affects 3 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 8.0 |
| Fedoraproject | Fedora | 30 |
| Rubyonrails | Rails | 6.0.0 < 5.2.2.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2019-5420 |
|---|---|
| BreachSpider ID | BS-2019-GLOBAL-231538-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2019-03-27 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-77: Command Injection
Attacker injects operating system commands through application inputs passed to a shell or system call.
CWE-330: CWE-330
Related attack patterns (CAPEC)
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-77
CAPEC-59 Session Credential Falsification through Prediction via CWE-330
CAPEC-76 Manipulating Web Input to File System Calls via CWE-77
CAPEC-485 Signature Spoofing by Key Recreation via CWE-330
CAPEC-15 Command Delimiters via CWE-77
Show all 11
CAPEC-40 Manipulating Writeable Terminal Devices via CWE-77
CAPEC-75 Manipulating Writeable Configuration Files via CWE-77
CAPEC-136 LDAP Injection via CWE-77
CAPEC-183 IMAP/SMTP Command Injection via CWE-77
CAPEC-112 Brute Force via CWE-330
CAPEC-248 Command Injection via CWE-77
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A remote code execution vulnerability exists in development mode for Rails versions prior to 5.2.2.1 and 6.0.0.beta3 due to the ability to guess the development mode secret token, which can be exploited to escalate to remote code execution.
An attacker can exploit this vulnerability by guessing the automatically generated development mode secret token in Rails applications running in development mode. Once the token is guessed, the attacker can use it in combination with other Rails internals to execute arbitrary code on the server.
Questions
What is CVE-2019-5420?
A remote code execution vulnerability exists in development mode for Rails versions prior to 5.2.2.1 and 6.0.0.beta3 due to the ability to guess the development mode secret token, which can be exploited to escalate to remote code execution.
What is the CVSS score for CVE-2019-5420?
CVE-2019-5420 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 89.3%.
Is CVE-2019-5420 actively exploited?
Public exploit available for CVE-2019-5420. Exploitation risk elevated.
How do I remediate CVE-2019-5420?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2019-5420?
CVE-2019-5420 affects Debian Debian Linux; Fedoraproject Fedora; Rubyonrails Rails.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.