CVE-2020-8185: Untrusted users can run pending migrations in production in Rails
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.76766%
CWE
Published
6/24/2020
Updated
7/5/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
actionpack | rubygems | >= 6.0.0, <= 6.0.3.1 | 6.0.3.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the ActionableExceptions middleware's flawed authorization check. The commit 2121b9d shows the fix changed the conditional from request.show_exceptions?
to check show_detailed_exceptions
header. This incorrect configuration check allowed attackers to trigger migrations via the actionable exceptions endpoint when show_exceptions was enabled (production default). The middleware's presence and flawed validation logic directly enabled the exploit.