Loading...
Skip to main content

CVE-2020-5257 — Sort order SQL injection in administrate — CVE Details

HIGH

Sort order SQL injection in Administrate

Published March 13, 2020Updated July 8, 2026Source: osv

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.

Advisory Timeline

  • First published March 13, 2020 (2404 days ago).
  • Last revised July 8, 2026 — 2307 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update administrate to 0.13.0 or later
gem install administrate -v 0.13.0

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
administrate
rubygems
0.0.10, 0.0.11, 0.0.12, 0.0.2 (+27 more)0.13.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.7 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2020-5257?
Sort order SQL injection in Administrate This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.7/10).
How do I check if my project is affected by CVE-2020-5257?
CVE-2020-5257 affects administrate. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-5257 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.7

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-2p5p-m353-833w

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies