Live threats

All CVEs / Thoughtbot

CVE-2020-5257Thoughtbot Administrate

High 8.1

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
Weakness (CWE)
CWE-943, CWE-89
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Administrate.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
thoughtbotadministrate< 0.13.0

Official sources

References

Links published by the sources. Open them with care.