All vulnerabilities

Servers and applications

GHSA-xjxq-pj7h-g676

TUS Upload Authorization Bypass Allows Cross-User File Overwrite

Severity
High 7.1
Published
5 Aug 2026
Last changed
5 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
12.1.0
Weakness
Authorization bypass through a user-controlled key (IDOR) (CWE-639)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change data · Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
Sources
Project advisories (GitHub)

Description

On Directus instances with the TUS resumable upload endpoint enabled (TUS_ENABLED=true), the endpoint did not enforce item level authorization on the file targeted by an upload replacement. An authenticated user holding create and update permission on directus_files could overwrite any other user's file, both its stored contents and its directus_files record, by naming the victim's file id in the Upload-Metadata header of a new upload.

This is a variant of GHSA-qqmv-5p3g-px89. The fix for that advisory added an item level access check for the id upload metadata key, but the upload completion handlers acted on a second, adjacent metadata key (replace_id) that was never validated against the caller. An upload supplying only replace_id was evaluated as an ordinary create against the caller's own permissions, while the completion path resolved and rewrote the referenced record using internal services that run without accountability.

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

Workarounds

Set TUS_ENABLED=false until you can upgrade. Restricting create and update on directus_files to trusted roles reduces the population able to reach the endpoint but does not remove the issue for those roles.

Workarounds as given by directus/directus's security advisory.

Affected software

SoftwareAffected versions
DirectusServers and applications · github:directus/directus
  • From 10.13.0 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