Directus is a real-time API and App dashboard for managing SQL database content. From 10.8.0 to before 11.9.3, a vulnerability exists in the file update mechanism which allows an unauthenticated actor to modify existing files with arbitrary contents (without changes being applied to the files' database-resident metadata) and / or upload new files, with arbitrary content and extensions, which won't show up in the Directus UI. This vulnerability is fixed in 11.9.3.
The vulnerability stems from improper file path validation (CWE-73) and lack of verification of uploaded file types (CWE-434) in the Directus file update mechanism. An unauthorized actor can modify the content of existing files on the server without updating associated metadata in the database — which makes it difficult to detect tampering. Additionally, it is possible to upload completely new files with arbitrary extensions and content, which are not visible in the Directus UI interface, further masking the attacker's activity.
An attacker can overwrite the content of any files on the server or place new files with potentially malicious content (e.g., webshell), which can lead to compromise of application integrity, server-side code execution, or persistent foothold in the system.
Directus should be updated immediately to version 11.9.3 or newer, in which the vulnerability has been fixed. Details of the patch are available in the official security advisory from the vendor and in the GitHub repository of the project.
Monospace Directus in versions from 10.8.0 to before 11.9.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:LMonospace Directus
APPMonospace10.8.0 – 11.9.3 (excl.)
Related vulnerabilities
Directus: błędna domyślna konfiguracja CORS umożliwia nieautoryzowany dostęp
Directus: błąd klucza cache umożliwia nieautoryzowany dostęp do danych
SSRF w Directus — bypass ochrony przez adres 0.0.0.0
Directus is a real-time API and App dashboard for managing SQL database content. Prior to 11.17.0, the PATCH /...
Directus is a real-time API and App dashboard for managing SQL database content. Prior to 11.17.0, Directus's ...