Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. rails
  4. ›
  5. CVE-2019-5420

CVE-2019-5420: Improper Input Validation

March 27, 2019 (updated October 9, 2019)

A remote code execution vulnerability in development mode Rails 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.

References

  • packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html
  • nvd.nist.gov/vuln/detail/CVE-2019-5420
  • weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/
  • www.exploit-db.com/exploits/46785/

Code Behaviors & Features

Detect and mitigate CVE-2019-5420 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.2.0 before 5.2.2.1, all versions starting from 6.0.0.beta1 before 6.0.0

Fixed versions

  • 5.2.2.1
  • 6.0.0

Solution

Upgrade to versions 5.2.2.1, 6.0.0 or above.

Impact 9.8 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

gem/rails/CVE-2019-5420.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:50 +0000.