CVE-2021-46398 Cross-Site Request Forgery in Filebrowser
Attackers can exploit CSRF to create an admin user and execute arbitrary commands via Filebrowser, leading to remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-46398?
CVE-2021-46398 is a high-severity vulnerability in n/a, published on 4 Feb 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A Cross-Site Request Forgery vulnerability exists in Filebrowser < 2.18.0 that allows attackers to create a backdoor user with admin privilege and get access to the filesystem via a malicious HTML webpage that is sent to the victim. An admin can run commands using the FileBrowser and hence it leads to RCE.
Weakness: CWE-352
Which versions are affected by CVE-2021-46398?
3 open source packages ship an affected version, including github.com/filebrowser/filebrowser/v2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/filebrowser/filebrowser/v2 Go | All versions | 2.18.0 |
github.com/filebrowser/filebrowser/v2 Go | All versions | 2.18.0 |
github.com/filebrowser/filebrowser/v2 Go | All versions | 2.18.0 |
Products include Filebrowser Filebrowser.
How do I fix CVE-2021-46398?
Upgrade github.com/filebrowser/filebrowser/v2 to 2.18.0 or later.
Is CVE-2021-46398 being exploited?
There is no known exploitation of CVE-2021-46398 in the wild and no public exploit code.
Public exploit code: 1 Exploit-DB entry and 2 proofs of concept on GitHub.
Other vulnerabilities in n/a
- CVE-2026-32760 File Browser Self Registration Grants Any User Admin Access When Default Permissions Include Admin
- CVE-2026-29188 File Browser: TUS Delete Endpoint Bypasses Delete Permission Check
- CVE-2023-39612 Cross-site scripting in n/a
- CVE-2026-30934 FileBrowser Quantum: Stored XSS in public share page via unsanitized share metadata (text/template misuse)
- CVE-2026-35604 File Browser share links remain accessible after Share/Download permissions are revoked
Sources
Also known as GHSA-72wf-hwcq-65h9, GO-2022-0563.