CVE-2020-5257Thoughtbot Administrate
High 8.1
Follow: this CVE · Thoughtbot · Thoughtbot Administrate We alert you by email or Slack (account required).
- Priority
- 49
- CVSS 3.1
- 8.1
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 61
- Auth required
- Yes
- Published
- Mar 13, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
What happens
In Administrate (rubygem) before version 0.13.0, when sorting by attributes on a dashboard, the direction parameter was not validated before being interpolated into the SQL query. This could present a SQL injection if the attacker were able to modify the `direction` parameter and bypass ActiveRecord SQL protections. Whilst this does have a high-impact, to exploit this you need access to the Administrate dashboards, which we would expect to be behind authentication. This is patched in wersion 0.13.0.
What to do
- Apply the vendor's security update for Administrate.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | administrate |
< 0.13.0 |
0.13.0 |
gem "administrate", ">= 0.13.0" |
Per OSV / GitHub Advisories (GHSA-2p5p-m353-833w). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| thoughtbot | administrate | < 0.13.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory