# CVE-2025-52903: File Browser Allows Execution of Shell Commands That Can Spawn Other Commands

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.0
- **CVSS:** 8.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.60% (percentile 76, 2026-11-26)
- **CWE:** CWE-77
- **Aliases:** GHSA-3q2w-42mv-cph4, GO-2025-3786
- **Published:** 2025-06-26T18:16:32.203Z
- **Modified:** 2026-06-17T09:37:14.887Z

## Who should check

- Projects that depend on Go package github.com/filebrowser/filebrowser/v2 (\< 2.33.10)
- Projects that depend on Go package github.com/filebrowser/filebrowser
- Anyone running filebrowser \>= 2.0.0, \< 2.33.10

## 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 on the 2.x branch prior to 2.33.10, the Command Execution feature of File Browser only allows the execution of shell command which have been predefined on a user-specific allowlist. Many tools allow the execution of arbitrary different commands, rendering this limitation void. The concrete impact depends on the commands being granted to the attacker, but the large number of standard commands allowing the execution of subcommands makes it likely that every user having the \`Execute commands\` permissions can exploit this vulnerability. Everyone who can exploit it will have full code execution rights with the uid of the server process. Version 2.33.10 contains a check for whether a command is allowed when using shell.

## Affected and fixed versions

- Go `github.com/filebrowser/filebrowser/v2`: affected \< 2.33.10; fixed 2.33.10 (osv)
- Go `github.com/filebrowser/filebrowser`: affected see advisory; fixed no fix listed yet (osv)
- filebrowser: \>= 2.0.0, \< 2.33.10 (cvelist)

## Mitigation

- Upgrade github.com/filebrowser/filebrowser/v2 to 2.33.10 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-52903. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-52903.md
Affected: github.com/filebrowser/filebrowser/v2 < 2.33.10; github.com/filebrowser/filebrowser
Fixed in: 2.33.10

Steps:
1. Search this machine and project for github.com/filebrowser/filebrowser/v2 (Go), github.com/filebrowser/filebrowser (Go), filebrowser: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-52903 being exploited?

There is no confirmed exploitation: CVE-2025-52903 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.60% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-52903?

High: CVSS 8.0 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-52903?

github.com/filebrowser/filebrowser/v2 \< 2.33.10; github.com/filebrowser/filebrowser.

### Is there a fix for CVE-2025-52903?

Yes. Fixed in 2.33.10. Upgrade github.com/filebrowser/filebrowser/v2 to 2.33.10 or later.

### How do I check if I'm affected by CVE-2025-52903?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/filebrowser/filebrowser/security/advisories/GHSA-3q2w-42mv-cph4>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-52903>
- patch: <https://github.com/filebrowser/filebrowser/commit/4d830f707fc4314741fd431e70c2ce50cd5a3108>
- other: <https://github.com/filebrowser/filebrowser/issues/5199>
- other: <https://github.com/GoogleContainerTools/distroless>
- other: <https://github.com/sbaresearch/advisories/tree/public/2025/SBA-ADV-20250326-02_Filebrowser_Shell_Commands_Can_Spawn_Other_Commands>
- other: <https://manpages.debian.org/bookworm/util-linux/prlimit.1.en.html>
- other: <https://pkg.go.dev/vuln/GO-2025-3786>
- other: <https://github.com/filebrowser/filebrowser>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-52903>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-3q2w-42mv-cph4> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2025-3786> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-52903> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-52903>
