Vulnerability · Published Apr 7, 2026 · Assigned by GitHub_M
CVE-2026-35585File Browser has a Command Injection via Hook Runner
High 7.5
In plain English
A high-severity OS command injection in filebrowser from filebrowser. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
File Browser is a file managing interface for uploading, deleting, previewing, renaming, and editing files within a specified directory. From 2.0.0 until 2.33.8, the hook system in File Browser — which executes administrator-defined shell commands on file events such as upload, rename, and delete — is vulnerable to OS command injection. Variable substitution for values like $FILE and $USERNAME is performed via os.Expand without sanitization. An attacker with file write permission can craft a malicious filename containing shell metacharacters, causing the server to execute arbitrary OS commands when the hook fires. This results in Remote Code Execution (RCE). This feature has been disabled by default for all installations from v2.33.8 onwards, including for existent installations.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/filebrowser/filebrowser | no fix listed | GO-2026-5481 |
| Go | github.com/filebrowser/filebrowser/v2 | 2.33.8 | GHSA-jvpw-637p-h3pw |
| Go | github.com/filebrowser/filebrowser/v2 | 2.33.8 | GO-2026-5481 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| filebrowser | filebrowser | >= 2.0.0-rc.1, < 2.33.8 |
Weakness: CWE-78, CWE-88 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/filebrowser/filebrowser/security/advisories/GHSA-jvpw-637p-h3pw x_refsource_CONFIRM
- https://github.com/filebrowser/filebrowser/issues/5199 x_refsource_MISC