Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
PostGIS must be installed and enabled on PostgreSQL (condition beyond attacker control → AC:H); Directus administrator credentials required → PR:H; full database confidentiality, integrity, and availability impact within unchanged scope.
Primary rating from Vendor (Fluid Attacks).
CVSS VectorVendor: Fluid Attacks
Lifecycle Timeline
2DescriptionCVE.org
Directus contains an authenticated SQL injection vulnerability in the collection creation flow when the instance uses PostgreSQL with PostGIS enabled. An administrator can create a collection with a geometry field whose fields[].type value starts with geometry but contains attacker-controlled SQL syntax after the geometry subtype.This issue affects Directus: before 12.1.0.
AnalysisAI
SQL injection in Directus before 12.1.0 enables an authenticated administrator to execute arbitrary SQL against the underlying PostgreSQL database during collection creation by embedding attacker-controlled SQL syntax within a geometry field type value. The attack is gated behind two non-default prerequisites - administrator-level credentials and a PostgreSQL backend with the PostGIS extension installed - which together constrain the realistic threat surface to insider risk or compromised admin accounts. A vendor patch is confirmed available in v12.1.0; no public exploit code or CISA KEV listing has been identified at time of analysis.
Technical ContextAI
Directus is an open-source headless CMS and data platform (cpe:2.3:a:directus:directus:*:*:*:*:*:*:*:*) that abstracts SQL databases behind a REST/GraphQL API. When the database backend is PostgreSQL with the PostGIS geospatial extension enabled, Directus supports geometry field types during collection schema creation. The vulnerability (CWE-89 - Improper Neutralization of Special Elements used in an SQL Command) arises because the collection creation flow parses the fields[].type value and, when the value begins with the string 'geometry', uses the remainder of that string to construct a PostGIS column definition without adequate sanitization or parameterization. This allows an attacker to append raw SQL beyond the expected geometry subtype, which is then interpolated directly into a DDL or DML statement executed against PostgreSQL.
RemediationAI
The primary remediation is upgrading Directus to version 12.1.0 or later, which resolves the injection by properly sanitizing geometry field type input during collection creation. The patched release is available at https://github.com/directus/directus/releases#release-v12.1.0, and the full security advisory is published at https://github.com/directus/directus/security/advisories/GHSA-chfm-g7r3-vv42. If an immediate upgrade is not feasible, operators should consider the following compensating controls: first, disable the PostGIS extension on the PostgreSQL instance if geospatial features are not actively required - this eliminates the vulnerable code path entirely but loses all geospatial column type support. Second, strictly limit Directus administrator-level access to the minimum number of trusted accounts and enforce MFA on those accounts, since the vulnerability is only reachable with admin credentials. Third, audit collection creation API activity in Directus logs for anomalous geometry type strings containing SQL metacharacters as a detection measure.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-53519
GHSA-c4h6-c3hj-2qc3