rubygem-rails: Weak secret token leading to possible code execution
Published Mar 27, 2019
9.8
CRITICALCVSS 3.1
EPSS 89.33%
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
-
- Version 5.2.2.1StatusaffectedConstraints-
- Version 6.0.0.beta3StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Rails | n/a | n/a |
|
Configuration 1
- < 5.2.2.1
- 6.0.0
- 6.0.0
Configuration 2
- 8.0
- 30
No data.
Red Hat Software Collections
rh-ror42-rubygem-rails
Not affected
Red Hat Software Collections
rh-ror50-rubygem-rails
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections | rh-ror42-rubygem-rails | Not affected | n/a |
| Red Hat Software Collections | rh-ror50-rubygem-rails | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of rh-ror42-rubygem-rails and rh-ror50-rubygem-rails as shipped with Red Hat Software Collections.
References (14)
- http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html x_refsource_MISCExploitThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2019-5420 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1689154 Issue Tracking
- https://github.com/advisories/GHSA-m42h-mh85-4qgc Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/railties/CVE-2019-5420.yml
- https://groups.google.com/d/msg/rubyonrails-security/IsQKvDqZdKw/UYgRCJz2CgAJ
- https://groups.google.com/forum/#!topic/rubyonrails-security/IsQKvDqZdKw
- https://groups.google.com/forum/#%21topic/rubyonrails-security/IsQKvDqZdKw x_refsource_CONFIRM
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/
- https://nvd.nist.gov/vuln/detail/CVE-2019-5420
- https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/ x_refsource_CONFIRMPatchVendor Advisory
- https://www.cve.org/CVERecord?id=CVE-2019-5420
- https://www.exploit-db.com/exploits/46785/ exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry
Change history (0)
No recorded changes yet.