Read the docs
TI-2020-04313 Aliases CVE-2020-5257GHSA-2p5p-m353-833w

Sort order SQL injection in Administrate

Priority LOW 37CWE-943Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
SQL injection
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-89.

Summary

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.

Why it matters now

EPSS 0.009 59th percentileScored 2026-11-07
Fix Fixed administrate (thoughtbot): 0.13.0administrate (RubyGems): 0.13.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
thoughtbotadministratebefore 0.13.00.13.0Patch availableCNA
—administrate (RubyGems)before 0.13.00.13.0Patch availableGHSA-2p5p-m353-833w
  • administrate Vendorthoughtbot Affected before 0.13.0 Fixed in 0.13.0 Patch available CNA
  • administrate (RubyGems) Vendor— Affected before 0.13.0 Fixed in 0.13.0 Patch available GHSA-2p5p-m353-833w

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:thoughtbot:administrate:*:*:*:*:*:ruby:*:*before 0.13.0Vulnerablethoughtbot
  • cpe:2.3:a:thoughtbot:administrate:*:*:*:*:*:ruby:*:* Versions before 0.13.0 Vulnerable ·thoughtbot

Remediation

  • Fix · CNA administrate (thoughtbot) Fixed in 0.13.0
  • Fix · GHSA-2p5p-m353-833w administrate (RubyGems) Fixed in 0.13.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2020-5257
  2. 2026-10-03 Alias added: GHSA-2p5p-m353-833w

References

  • TI-2016-02597 Cross-site request forgery in administrate CVSS 3.1MEDIUM 5.4

Sources