Advisory

GHSA-2p5p-m353-833w

Also known as: CVE-2020-5257

Summary

Sort order SQL injection in Administrate

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-03-13 21:05 UTC
Modified
2026-07-08 06:28 UTC

Affected packages and fixes

administrate

RubyGems · All systems

Affected

  • introduced 0, fixed 0.13.0 (ecosystem)

Fixed versions

0.13.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences