Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-52995 Overview
CVE-2025-52995 affects File Browser, an open-source web application that provides a file management interface for a specified directory. The vulnerability exists in versions prior to 2.33.10 and stems from an incorrect implementation of the command allowlist. Authenticated users can execute shell commands beyond their authorized scope. Because File Browser processes lack OS-level scope separation, a successful bypass can grant an attacker access to all files managed by the application, including the File Browser database itself. The maintainers patched the flaw in version 2.33.10.
Critical Impact
Authenticated users can bypass the command allowlist to execute unauthorized shell commands, potentially exposing all managed files and the File Browser database.
Affected Products
- File Browser (filebrowser/filebrowser) versions prior to 2.33.10
- Deployments running File Browser with shell command execution configured
- Container images bundling File Browser below version 2.33.10
Discovery Timeline
- 2025-06-30 - CVE-2025-52995 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-52995
Vulnerability Analysis
The flaw is classified as [CWE-77] Improper Neutralization of Special Elements used in a Command. File Browser allows administrators to define a per-user allowlist of shell commands the user may invoke through the application. In vulnerable releases, the allowlist check in the command runner did not correctly identify the executed command when a shell was configured, letting authenticated users invoke commands outside their permitted set.
The practical impact depends on which binaries the server or container image exposes. Because File Browser runs commands under a single OS user, any allowed command inherits full read and write access to the managed directory and the application database.
Root Cause
The ParseCommand function in runner/parser.go split the raw command string but did not consistently return the command name used to evaluate the allowlist when the instance was configured with a shell. As a result, the allowlist comparison happened against a value that could differ from the actual binary invoked through the shell. The fix restructures ParseCommand to return the command name explicitly and adds an allowlist check in http/commands.go using the slices package.
Attack Vector
Exploitation requires an authenticated File Browser account with permission to execute at least one shell command. The attacker crafts a command string that satisfies the flawed allowlist parser while causing the configured shell to execute a different binary. Because the server evaluates the wrong token against the allowlist, the shell then runs the attacker-chosen command with the privileges of the File Browser process.
// Patch excerpt - runner/parser.go
// ParseCommand parses the command taking in account if the current
// instance uses a shell to run the commands or just calls the binary
// directly.
func ParseCommand(s *settings.Settings, raw string) (command []string, name string, err error) {
name, args, err := SplitCommandAndArgs(raw)
if err != nil {
return
}
if len(s.Shell) == 0 || s.Shell[0] == "" {
// direct binary execution path
}
}
Source: GitHub commit 4d830f7
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2025-52995
Indicators of Compromise
- Unexpected child processes spawned by the filebrowser binary that do not match the configured per-user command allowlist.
- Access or modification timestamps on the File Browser database file (typically filebrowser.db) that do not correlate with administrative activity.
- Shell process invocations (for example /bin/sh -c) originating from the File Browser service with unusual argument strings.
Detection Strategies
- Enumerate running File Browser instances and compare installed versions to 2.33.10 or later.
- Review File Browser audit logs for command executions that reference binaries outside each user's configured allowlist.
- Monitor process ancestry on hosts and containers running File Browser to identify shell-mediated command execution.
Monitoring Recommendations
- Alert on new child processes of the File Browser service that are not part of the approved command set.
- Track read and write access to filebrowser.db and to files outside the intended managed directory.
- Forward File Browser and host process telemetry to a centralized analytics platform for correlation with authentication events.
How to Mitigate CVE-2025-52995
Immediate Actions Required
- Upgrade File Browser to version 2.33.10 or later on every host and container image.
- Audit the configured command allowlist for each user and remove commands that are not strictly required.
- Rotate any secrets, tokens, or credentials stored within the managed directory or the File Browser database if exploitation is suspected.
Patch Information
The fix is available in File Browser v2.33.10. It is delivered by commit 4d830f7, which corrects the allowlist evaluation when a shell is configured. See the maintainer advisory GHSA-w7qc-6grj-w7r8 for full details.
Workarounds
- Disable the shell configuration in File Browser settings so commands run as direct binary invocations rather than through a shell.
- Remove command execution permissions from all non-administrative users until the upgrade is deployed.
- Run File Browser inside a minimal container image that does not include additional interpreters or utilities beyond what the workload requires.
# Verify installed File Browser version and upgrade
filebrowser version
# Docker example: pin to the patched release
docker pull filebrowser/filebrowser:v2.33.10
docker stop filebrowser && docker rm filebrowser
docker run -d --name filebrowser \
-v /srv/files:/srv \
-v /srv/filebrowser.db:/database.db \
filebrowser/filebrowser:v2.33.10
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

