Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Directus admin credentials
-
DeliveryAuthenticate to network-accessible Directus API
-
ExploitCraft collection payload with SQL-injected geometry field type
-
ExecutionSubmit collection creation request
-
PersistInjected SQL executes in PostgreSQL context
-
ImpactExfiltrate or manipulate database contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all three of the following conditions to be simultaneously present: (1) the attacker must hold Directus administrator-level credentials (PR:H per CVSS - lower privilege roles cannot access the collection creation flow in a way that triggers this path); (2) the Directus instance must be configured to use PostgreSQL as its database backend (not MySQL or SQLite); and (3) the PostGIS extension must be installed and enabled on that PostgreSQL instance, enabling the geometry column type handling that contains the injection point. The injected value must begin with the string 'geometry' to enter the vulnerable code path, with attacker-controlled SQL appended after the subtype prefix. No special network positioning is required beyond being able to reach the Directus API. The AT:P metric in the CVSS 4.0 vector explicitly encodes the PostGIS dependency as a required attack target prerequisite, and PR:H encodes the admin credential requirement - both of which meaningfully limit exploitation beyond what the raw CVSS score alone conveys. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H) scores 7.5 and reflects network reachability with high potential impact, but the two key gatekeeping signals are PR:H (administrator credentials required) and AT:P (PostGIS must be installed and active). These factors together mean this is not a broadly exploitable, opportunistic vulnerability - it requires a compromised or malicious administrator on a non-default PostGIS-enabled deployment. No EPSS score was provided in the source data, and no KEV listing or POC exploit code has been identified, which further supports treating this as a medium-priority issue for most organizations rather than an emergency. The primary residual risk is an insider-threat or post-compromise scenario where an attacker has already elevated to Directus admin and uses this to pivot deeper into the database layer. Instances running MySQL, SQLite, or PostgreSQL without PostGIS are entirely unaffected. |
| Exploit ScenarioDerived | An attacker who has acquired Directus administrator credentials - through phishing, credential stuffing against a reused password, or by acting as a malicious insider - authenticates to a Directus instance backed by PostgreSQL with PostGIS enabled. During collection creation, they submit a field definition where the type value begins with a valid geometry subtype string but appends crafted SQL syntax, such as a UNION SELECT or stacked query, causing Directus to construct and execute a malicious SQL statement against PostgreSQL. This results in unauthorized read access to sensitive data across the database, potential data manipulation, or denial of service against the database layer. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Directus gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
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
DescriptionCVE.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.
Executive ViewAI
A SQL injection vulnerability in Directus before v12.1.0 could allow compromised administrator accounts to directly access and manipulate production data in PostgreSQL databases. Organizations using Directus with PostgreSQL should prioritize upgrading and reviewing administrator credentials immediately, as this vulnerability represents a material insider risk. No public exploit identified at time of analysis.
Apply vendor patch. Interim mitigations: restrict and monitor administrator credentials closely, disable PostGIS extension on instances where geometry fields are not business-critical, implement real-time alerting on collection creation operations by administrators, and strengthen logging of all administrative actions.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Directus 6.4.9 has a hardcoded admin password for the Admin account because of an INSERT statement in api/schema.sql. Ra
Directus is a real-time API and App dashboard for managing SQL database content. Rated critical severity (CVSS 9.3), thi
Directus instances that expose the WebSocket REST interface in public authentication mode can be driven into a state whe
Directus 8 before 8.8.2 allows remote authenticated users to execute arbitrary code because file-upload permissions incl
In Directus 8.x through 8.8.1, an attacker can switch to the administrator role (via the PATCH method) without any contr
Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 8.6), this vu
Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 8.2), this vu
Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 7.7), this vu
Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 7.5), this vu
Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 7.5), this vu
Directus is a real-time API and App dashboard for managing SQL database content. Rated high severity (CVSS 7.5), this vu
In Directus 8.x through 8.8.1, an attacker can see all users in the CMS using the API /users/{id}. Rated high severity (
EUVD-2026-53519
GHSA-c4h6-c3hj-2qc3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB