Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate and obtain JWT via POST /api/login
-
DeliveryOpen /api/command/ WebSocket with X-Auth token
-
ExploitSubmit allowlisted command with chained payload (ls; id; cat /etc/passwd)
-
ExecutionAllowlist validates only the first token
-
PersistShell re-parses metacharacters and chains commands
-
ImpactArbitrary OS commands execute as root server process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a specific, non-default chain of conditions: (1) the Command Execution feature must be explicitly enabled (--disable-exec=false), which is disabled by default from v2.33.8 onward including on upgraded installs; (2) a shell interpreter must be configured in settings.Shell (e.g. /bin/sh -c) - without a configured shell the raw string is not re-parsed and the bypass does not apply; (3) the attacker must be an authenticated user (PR:L) holding Execute permission with at least one allowed command in their allowlist. Given those, exploitation is trivial over the network via the /api/command/ WebSocket using shell metacharacters (;, |, backticks, $()). Limiting factors that reduce real-world risk: the feature is off by default and the vendor warns against enabling it, valid authentication plus an explicit Execute grant is needed, and impact is bounded by the server process privilege (though that is root in the default container). |
| Impact | Signals here pull in opposite directions, so raw CVSS overstates urgency for most environments. The CVSS 4.0 base score is 8.7 (High) with AV:N/AC:L/PR:L/UI:N and full VC/VI/VA:H, reflecting trivial network exploitation and total host compromise once preconditions are met. However EPSS is only 0.02% (7th percentile), there is no CISA KEV listing, and exploitation is gated behind a non-default, vendor-deprecated feature: command execution must be explicitly enabled, a shell must be configured, and the attacker must already be an authenticated user (PR:L) granted Execute permission with at least one allowed command. The vendor disabled this feature by default from 2.33.8 for all installations including existing ones, sharply shrinking the real exploitable population. A complete PoC exists, raising risk for the minority of operators who deliberately re-enabled the feature despite vendor warnings. Net: a genuine root-level RCE for that specific misconfiguration, but low real-world priority for default deployments. Note the AC:L rating does not capture the non-default configuration requirement, which is better treated as an environmental limiter than as attack complexity. |
| Exploit ScenarioDerived | An authenticated File Browser user granted Execute permission with a narrow allowlist (e.g. git,ls,cat) on an instance where an admin enabled command execution with /bin/sh -c opens the /api/command/ WebSocket and submits 'ls; id; whoami; cat /etc/passwd'. The allowlist accepts the leading 'ls', but the shell executes the entire chain, returning command output and giving the attacker arbitrary code execution as the server process - root in the stock Docker image. A complete step-by-step PoC including JWT acquisition is published in the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 25, 2026
Authenticated command injection in File Browser (github.com/filebrowser/filebrowser/v2 before 2.33.8) lets any user holding Execute permission bypass the command allowlist when a shell interpreter such as /bin/sh -c is configured. Because the allowlist validates only the first token while the full raw string is passed to the shell, an attacker chains arbitrary OS commands after a permitted one using metacharacters (;, |, backticks, $()), executing them at the server process privilege - root in the default Docker image. A detailed working PoC is published in the GHSA advisory; EPSS is very low (0.02%, 7th percentile) and the vulnerable Command Execution feature is disabled by default from 2.33.8 onward, including for upgraded existing installations.
Earlier versions of this analysis (2)
Command allowlist bypass in File Browser (github.com/filebrowser/filebrowser/v2, versions < 2.33.8) lets an authenticated user with Execute permission run arbitrary OS commands when a shell interpreter is configured. The per-user command allowlist only validates the first token while the entire raw input is passed to the configured shell (e.g. /bin/sh -c), so metacharacters such as ;, |, backticks, and $() chain arbitrary commands after a permitted one. A detailed working PoC exists (publicly available exploit code), but EPSS is very low (0.02%, 7th percentile) and the feature is disabled by default from v2.33.8 onward, so realistic exposure is limited to operators who deliberately enabled command execution.
Command execution allowlist bypass in File Browser (github.com/filebrowser/filebrowser v2) allows authenticated users with Execute permission to run arbitrary OS commands by chaining shell metacharacters (semicolons, pipes, backticks, $()) after a permitted command. The flaw exists when an instance administrator enables the Command Execution feature and configures a shell interpreter (e.g. /bin/sh -c); ParseCommand validates only the first token against the allowlist but passes the entire raw string to the shell. No public exploit identified at time of analysis beyond the detailed PoC in the advisory itself, and the feature has been disabled by default since v2.33.8.
RemediationAI
Vendor-released patch: upgrade to File Browser 2.33.8 or later, which disables the Command Execution feature by default for both new and existing installations; related allowlist hardening also landed in 2.33.10. The most effective control is to leave command execution disabled - run with --disable-exec=true (the new default) so the vulnerable code path is unreachable. If you do not need shell command execution, do not re-enable it; the vendor explicitly warns against turning the feature on. If you must keep it enabled, avoid configuring a shell interpreter (clear settings.Shell so commands run via direct exec without /bin/sh -c re-parsing), which removes the metacharacter chaining vector at the cost of losing shell features like pipes and globbing; additionally restrict Execute permission to a minimal set of trusted users, and run the container as a non-root user to limit blast radius rather than the default root. Refer to GHSA-8c9q-7855-wfxq and issue #5199 for vendor guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
File Browser is a self-hosted Go web application for browsing and managing files, commonly run as the official filebrowser/filebrowser Docker container. The flaw is CWE-77 (Improper Neutralization of Special Elements used in a Command). In runner/parser.go, ParseCommand calls SplitCommandAndArgs to extract the first token (name) for the allowlist check, but when settings.Shell is set it appends the entire untrimmed user input as a single argument to the shell invocation (e.g. /bin/sh -c "<raw>"). In http/commands.go, commandsHandler checks slices.Contains(d.user.Commands, name) - so 'ls' passes - then runs exec.Command with the shell, which re-parses and honors all metacharacters in the rest of the string. The affected package per CPE is pkg:go/github.com_filebrowser_filebrowser_v2. This is explicitly distinct from CVE-2025-52995 (regex partial matching) and CVE-2025-52903 (GTFOBins subcommands); the prior slices.Contains hardening does not address shell metacharacter chaining.
Know when Docker gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable WebSocket API (AV:N); requires an authenticated user with Execute permission (PR:L), no UI; bypass yields full host command execution (C/I/A:H) within the server's process scope (S:U).
Primary rating from Vendor (https://github.com/filebrowser/filebrowser).
CVSS VectorVendor: https://github.com/filebrowser/filebrowser
Lifecycle Timeline
3DescriptionCVE.org
> [!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.
Summary
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.
Affected Location
runner/parser.go, functionParseCommand(lines 10-25)http/commands.go, functioncommandsHandler(lines 72-86)
Root Cause
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.
PoC
Prerequisites:
- Command execution enabled (
--disable-exec=false) - Shell configured to
/bin/sh -c - User has Execute permission with an allowlist, e.g.
git,ls,cat
Steps:
- Log in, grab a JWT:
POST /api/login
{"username":"admin","password":"..."}- Open a WebSocket to
/api/command/with headerX-Auth: <jwt>. - Send:
ls; id; whoami; cat /etc/passwd- All four commands execute and output is returned. Sending just
whoamialone 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/shTested against commit d236f1c (frontend v3.0.0) on the official Docker image filebrowser/filebrowser:latest.
Impact
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.
Executive ViewAI
File Browser versions before 2.33.8 contain an authenticated command injection vulnerability allowing users with Execute permission to bypass the command allowlist and execute arbitrary OS commands at server privilege level (root by default in containerized deployments). While the vulnerable feature is disabled by default and current exploitation probability is statistically minimal (0.02% EPSS), organizations operating with shell interpreter command execution enabled face risk of complete infrastructure compromise. Immediate patching to version 2.33.8 is required for affected deployments.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
Same weakness CWE-77 – Command Injection
View allSame technique Command Injection
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-39511
GHSA-8c9q-7855-wfxq
NVD
CVE.org
EPSS
Exploit-DB