# CVE-2026-35585: File Browser has a Command Injection via Hook Runner

- Severity: High 7.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.04%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-07T16:20:46.019Z
- Modified: 2026-09-10T03:50:44.652Z
- Also known as: GHSA-jvpw-637p-h3pw, GO-2026-5481
- Weaknesses: CWE-78, CWE-88
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- filebrowser filebrowser: >= 2.0.0-rc.1, < 2.33.8; from 2.0.0 up to 2.63.1
- github.com/filebrowser/filebrowser/v2 (Go): before 2.33.8
- github.com/filebrowser/filebrowser (Go): all versions

## Every score

- GitHub_M: CVSS:4.0 7.5 High `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`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/filebrowser/filebrowser/security/advisories/GHSA-jvpw-637p-h3pw> (exploit, advisory, vendor-advisory, web)
- <https://github.com/filebrowser/filebrowser/issues/5199> (patch, report, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35585> (advisory)
- <https://github.com/filebrowser/filebrowser> (package)

## Sources

- CVE List: [CVE-2026-35585](https://www.cve.org/CVERecord?id=CVE-2026-35585), CVE Terms of Use, modified 2026-06-09
- GitHub Advisory Database: [GHSA-jvpw-637p-h3pw](https://github.com/advisories/GHSA-jvpw-637p-h3pw), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5481](https://pkg.go.dev/vuln/GO-2026-5481), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-35585](https://nvd.nist.gov/vuln/detail/CVE-2026-35585), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-35585 · Whole record: https://cve.day/CVE-2026-35585.json · Rebuilt by cve.day 2026-11-25T22:59:18.131Z
