All vulnerabilities

Servers and applications

CVE-2026-10716

SQL injection via geometry field type in PostgreSQL/PostGIS collection creation

Severity
High 7.2
Published
5 Aug 2026
Last changed
6 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
12.1.0
Exploit chance
0.4% in the next 30 daysHigher than 36% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper input validation (CWE-20)SQL injection (CWE-89)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-chfm-g7r3-vv42
Sources
Project advisories (GitHub)

Description

Directus is vulnerable to authenticated SQL injection during collection creation when the database is PostgreSQL with the PostGIS extension enabled. A field declared with a geometry type is not validated against the set of supported geometry subtypes, allowing an attacker-controlled subtype string to be embedded into the raw DDL used to create the collection's table.

When a collection is created, Directus builds the table's columns from the request's fields[] entries. Any field whose type begins with geometry is routed to the PostgreSQL geometry helper, which derives a subtype from the field type and places it into a raw geometry(, 4326) type fragment. Because this fragment is emitted literally into the generated CREATE TABLE statement, a crafted subtype can terminate the intended expression and append additional SQL, which is then executed by the database.

The relevant components are:

From directus/directus's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
DirectusServers and applications · github:directus/directus
  • Every version before 12.1.0

About Directus

The flexible backend for all your projects 🐰 Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.

From its GitHub repository.
Weekly downloads (npm)
30,924npm, 15 Nov 2026
Docker Hub pulls
50,954,770Docker Hub, 15 Nov 2026
GitHub stars
38,722GitHub, 15 Nov 2026
Forks
5,000GitHub, 15 Nov 2026
Latest release
v12.6.1GitHub, 15 Nov 2026
Released
4 Nov 2026GitHub
First published on GitHub
12 Dec 2012GitHub

References