directus is vulnerable to SQL Injection
72
CVE Score
High
SQL Injection
Directus builds a collection's table columns from client-supplied fields[].type values during collection creation. Any field whose type begins with geometry is routed to the PostgreSQL geometry helper, which places the derived subtype into a raw geometry(...) DDL fragment without an allowlist or neutralization. On PostgreSQL with the PostGIS extension, a crafted subtype terminates the intended expression and appends attacker-controlled SQL that the database executes as a blind, time-based injection. The fix restricts geometry field types to a known set of supported subtypes.
Upgrade the directus library to the patch version.
You are affected if you are using a version that falls within the vulnerable range, you run Directus on PostgreSQL with the PostGIS extension enabled, and an account permitted to create collections (an administrator by default) submits the crafted geometry field type.
0.0.1 - 12.0.2
Fixed in 12.1.0directus is vulnerable to SQL Injection in versions 0.0.1 - 12.0.2.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.