{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2020-5257","published":"2020-03-13T21:15:12.190000Z","last_modified":"2026-06-17T03:21:08.753000Z","status":"Modified","cvss":{"version":"3.1","score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-943","CWE-89"],"cpes":[{"criteria":"cpe:2.3:a:thoughtbot:administrate:*:*:*:*:*:ruby:*:*","part":"a","vendor":"thoughtbot","product":"administrate","version_end_excluding":"0.13.0"}],"cpes_truncated":false,"vendors":["thoughtbot"],"products":["thoughtbot/administrate"],"epss":{"score":0.009,"percentile":0.60722,"date":"2026-12-01","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-2p5p-m353-833w","ecosystem":"RubyGems","name":"administrate","purl":"pkg:gem/administrate","ranges":[{"introduced":"0","fixed":"0.13.0"}],"versions":["0.0.10","0.0.11","0.0.12","0.0.2","0.0.3","0.0.4","0.0.6","0.0.7","0.0.8","0.0.9","0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.10.0","0.11.0","0.12.0","0.2.0","0.2.0.rc1","0.2.1","0.2.2","0.3.0","0.4.0","0.5.0","0.6.0","0.7.0","0.8.0","0.8.1","0.9.0"],"versions_truncated":false}],"severity":"high","priority_score":49,"links":{"html_es":"/es/cve/CVE-2020-5257/","html_en":"/en/cve/CVE-2020-5257/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-5257","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-5257"},"untrusted":{"vendor_name":"Thoughtbot","product_name":"Administrate","desc_en":"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.","affected":[{"untrusted_vendor":"thoughtbot","untrusted_product":"administrate","versions":[]}],"references":[{"url":"https://github.com/thoughtbot/administrate/commit/3ab838b83c5f565fba50e0c6f66fe4517f98eed3","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/thoughtbot/administrate/security/advisories/GHSA-2p5p-m353-833w","tags":["Third Party Advisory"]}]}}