Intel

AIKIDO-2026-620626

statamic/eloquent-driver is vulnerable to SQL Injection

GHSA-5qmf-5xc3-j94fPublished Oct 9, 2026
October 9, 2026

65

CVE Score

Medium

SQL Injection

Are you affected? Scan for Free

TL;DR

The QueriesJsonColumns trait builds the SQL ORDER BY clause for JSON cast entry and asset fields using a caller supplied sort direction without validating it. An authenticated Control Panel user with access to a collection or asset container can pass a direction such as asc, (select 1) to inject SQL into the ordering clause and read arbitrary database data, including user records and password hashes. The fix adds an allowlist that only accepts asc or desc and throws an exception for anything else.

How do I fix this?

Upgrade the statamic/eloquent-driver library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range, and you allow authenticated Control Panel users to sort entries or assets by a number or date field.

Versions

0.0.1 - 4.36.2

Fixed in 4.36.3

0.0.1 - 5.12.1

Fixed in 5.12.2

Background info

statamic/eloquent-driver is vulnerable to SQL Injection in versions 0.0.1 - 4.36.2 and 0.0.1 - 5.12.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea