CVE-2020-5257CWE-943

Sort order SQL injection in Administrate

High · published March 13, 2020

CVSS v3.1
7.7
EPSS
1%
Percentile
59.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.7 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00900 · 59.3th percentile
Weakness
CWE-943 · Improper Neutralization of Special Elements in Data Query Logic
Published
2020-03-13T21:05Z
EPSS history
Timeline
  • 13 MAR 21:05Z
    Sort order SQL injection in Administrate
    cvelistv5