CVE-2025-52995: File Browser vulnerable to command execution allowlist bypass
Summary ## The Command Execution feature of Filebrowser only allows the execution of shell command which have been predefined on a user-specific allowlist. The implementation of this allowlist is erroneous, allowing a user to execute additional commands not permitted. Impact ## A user can execute more shell commands than they are authorized for.
Published Jun 30, 2025 · Updated Aug 4, 2025
Affected packages
github.com/filebrowser/filebrowser/v2
- Ecosystem
- Go
- Affected
- < 2.33.10
- Fixed in
- 2.33.10
- Check
go list -m github.com/filebrowser/filebrowser/v2
github.com/filebrowser/filebrowser
- Ecosystem
- Go
- Affected
- <= 1.11.0
- Fixed in
- No patched version yet
- Check
go list -m github.com/filebrowser/filebrowser
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary ##
The *Command Execution* feature of Filebrowser only allows the execution of shell command which have been predefined on a user-specific allowlist. The implementation of this allowlist is erroneous, allowing a user to execute additional commands not permitted.
Impact ##
A user can execute more shell commands than they are authorized for. The concrete impact of this vulnerability depends on the commands configured, and the binaries installed on the server or in the container image. Due to the missing separation of *scopes* on the OS-level, this could give an attacker access to all files managed the application, including the File Browser database.
Vulnerability Description ##
For a user to make use of the command execution feature, two things need to happen in advance:
- An administrator needs to grant that account the
Execute commandspermission - The command to be executed needs to be listed in the
Commandsinput field (also done by an administrator)
If a user tries to execute a different command, it gets rejected by the application.
The allowlist verification of a command happens in the function CanExecute in the file users/users.go:
// CanExecute checks if an user can execute a specific command.
func (u *User) CanExecute(command string) bool {
if !u.Perm.Execute {
return false
}
for _, cmd := range u.Commands {
if regexp.MustCompile(cmd).MatchString(command) {
return true
}
}
return false
}This check employs a regular expression which does not test if the command issued (command) is identical to a configured one (cmd, part of the array u.Commands) but rather only if the issued command contains an allowed one. This has the consequence, that, e.g., if you are only granted access to the ls command, you will also be allowed to execute lsof and lsusb.
As a prerequisite, an attacker needs an account with the Execute Commands permission and some permitted commands.
Proof of Concept ##
Grant a user the Execute commands permission and allow them to use only ls in the Commands field.
image
Afterwards, login as that user, open a command execution window and execute lsof and lsusb.
image
Recommended Countermeasures ##
The CanExecute function in the *Filebrowser* source code should be fixed to only allow exact matches of the command specified instead of doing partial matching. The correctness of this fix should be extensively tested in the application's automated test suite.
Timeline ##
2025-03-25Identified the vulnerability in version 2.32.02025-04-11Contacted the project2025-04-18Vulnerability disclosed to the project2025-06-25Uploaded advisories to the project's GitHub repository2025-06-25CVE ID assigned by GitHub2025-06-26Fix released in version 2.33.10
References ##
Credits ##
- Mathias Tausig (SBA Research)
Credited to mtausig, hacdias.
References
- https://github.com/filebrowser/filebrowser/security/advisories/GHSA-w7qc-6grj-w7r8
- https://github.com/filebrowser/filebrowser/commit/4d830f707fc4314741fd431e70c2ce50cd5a3108
- https://github.com/filebrowser/filebrowser/releases/tag/v2.33.10
- https://nvd.nist.gov/vuln/detail/CVE-2025-52995
- https://github.com/sbaresearch/advisories/tree/public/2025/SBA-ADV-20250325-05_Filebrowser_Bypass_Command_Execution_Allowlist
- https://pkg.go.dev/vuln/GO-2025-3795
- https://github.com/advisories/GHSA-w7qc-6grj-w7r8
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-62683
File Browser: Trailing-slash directory deletion leaves public shares active for recreated paths
low3.1Nov 13, 2026CVE-2026-55667
File Browser: Out-of-scope file deletion by a Create-only scoped user via symlink-following RemoveAll in upload failure-cleanup
high8.2Jul 20, 2026CVE-2026-55668
File Browser: ScopedFs follows a dangling symlink on write, letting a scoped user create files outside their scope
medium6.3Jul 20, 2026CVE-2026-62684
File Browser: Share API exposes the password hash and bypass token
low2.7Jul 20, 2026CVE-2026-62685
File Browser: Colliding username normalization gives two users the same home directory
high8.1Jul 20, 2026CVE-2026-62843
File Browser: Archive builder turns backslash filenames into path traversal (zip-slip)
medium6.8Jul 20, 2026
