8.1high
File Browser vulnerable to command execution allowlist bypass
- Severity
- 8.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.66% (higher than 52% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-w7qc-6grj-w7r8GO-2025-3795
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. Prior to version 2.33.10, the implementation of the allowlist is erroneous, allowing a user to 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. This issue has been patched in version 2.33.10.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| filebrowser filebrowser | < 2.33.10, up to 2.33.8 | CVE List, NVD |
| github.com/filebrowser/filebrowser/v2 (Go) | before 2.33.10 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/filebrowser/filebrowser (Go) | up to 1.11.0, all versions | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 8.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | 6.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
File Browser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit files. Prior to version 2.33.10, the implementation of the allowlist is erroneous, allowing a user to 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. This issue has been patched in version 2.33.10.
GitHub Advisory Database
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.
Afterwards, login as that user, open a command execution window and execute lsof and lsusb.
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)
Go Vulnerability Database
File Browser vulnerable to command execution allowlist bypass in github.com/filebrowser/filebrowser
NVD (es)
File Browser proporciona una interfaz de gestión de archivos dentro de un directorio específico y permite cargar, eliminar, previsualizar, renombrar y editar archivos. En versiones anteriores a la 2.33.10, la implementación de la lista de permitidos era errónea, lo que permitía al usuario ejecutar más comandos de shell de los autorizados. El impacto concreto de esta vulnerabilidad depende de los comandos configurados y de los binarios instalados en el servidor o en la imagen del contenedor. Debido a la falta de separación de ámbitos a nivel del sistema operativo, esto podría dar a un atacante acceso a todos los archivos administrados por la aplicación, incluida la base de datos del Explorador de Archivos. Este problema se ha corregido en la versión 2.33.10.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-52995 changed 2025-06-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w7qc-6grj-w7r8 changed 2025-08-04 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-3795 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2025-52995 changed 2026-06-17 | Public domain |