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.

Severity (CVSS 4.0)7.5High
Exploit odds (30 days)2.0%top 19.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
Gogithub.com/filebrowser/filebrowserno fix listedGO-2026-5481
Gogithub.com/filebrowser/filebrowser/v22.33.8GHSA-jvpw-637p-h3pw
Gogithub.com/filebrowser/filebrowser/v22.33.8GO-2026-5481

Affected products (as reported)

VendorProductVersions
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