CVE-2020-5257
Last modified
CVE-2020-5257 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 0.90% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Thoughtbot | Administrate | < 0.13.0 |
References
- https://github.com/thoughtbot/administrate/commit/3ab838b83c5f565fba50e0c6f66fe4517f98eed3Patch, Third Party Advisory
- https://github.com/thoughtbot/administrate/commit/3ab838b83c5f565fba50e0c6f66fe4517f98eed3Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-5257?
How severe is CVE-2020-5257?
How do I fix CVE-2020-5257?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2020
- CVE-2020-5251In parser-server before version 4.1.0, you can fetch all the…5.3
- CVE-2020-5252The command-line "safety" package for Python has a potential…4.1
- CVE-2020-5253NetHack before version 3.6.0 allowed malicious use of escapi…9.8
- CVE-2020-5254In NetHack before 3.6.6, some out-of-bound values for the hi…8.1
- CVE-2020-5255In Symfony before versions 4.4.7 and 5.0.7, when a `Response…4.3
- CVE-2020-5256BookStack before version 0.25.5 has a vulnerability where a …8.8
- CVE-2020-5258In affected versions of dojo (NPM package), the deepCopy met…7.7
- CVE-2020-5259In affected versions of dojox (NPM package), the jqMix metho…8.6
- CVE-2020-5260Affected versions of Git have a vulnerability whereby Git ca…7.5
- CVE-2020-5261Saml2 Authentication services for ASP.NET (NuGet package Sus…6.8
- CVE-2020-5262In EasyBuild before version 4.1.2, the GitHub Personal Acces…5.5
- CVE-2020-5263auth0.js (NPM package auth0-js) greater than version 8.0.0 a…4.9
Are you affected by CVE-2020-5257?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
