Directus allows unauthenticated file upload and file modification due to lacking input sanitization
directus
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| directus npm |
|
|
| @directus/api npm |
|
|
directus
| Product | Affected | Fixed in |
|---|---|---|
| directus npm |
|
|
| @directus/api npm |
|
|
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.
From the CVE record · GitHub_M
The Directus file update mechanism allows an unauthenticated attacker to replace the contents of existing files without changing their database metadata. The attacker can also upload files with arbitrary contents and extensions that do not appear in the Directus UI.
Check installations using npm directus >=10.8.0 and <11.9.3 or npm @directus/api >=14.1.0 and <28.0.2.