CVE-2019-5420

unknown
Published 2019-03-13 ยท Modified 2024-02-22
CVSS v3
โ€”
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
1.0

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.

Predictions

Exploit likelihood
30%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-46785 remote linux verified
Metasploit ยท 2019-05-02

Ruby On Rails - DoubleTap Development Mode secret_key_base Remote Code Execution (Metasploit)

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

Ruby On Rails DoubleTap Development Mode secret_key_base Vulnerability
Source fetch failed: fetch_error โ€” view the original via the link above.

OS impact

suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 2:5.2.2.1+dfsg-1
sid Fixed 2:5.2.2.1+dfsg-1
forky Fixed 2:5.2.2.1+dfsg-1
bullseye Fixed 2:5.2.2.1+dfsg-1
bookworm Fixed 2:5.2.2.1+dfsg-1

Package impact

EcosystemPackageVulnerableFixed
ruby RubyGemsrailties!< 5.2.0||<~> 5.2.2, >= 5.2.2.1~> 5.2.2, >= 5.2.2.1
ruby RubyGemsrailties>=5.2.0,<5.2.2.15.2.2.1

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.