CVE-2021-46398 Cross-Site Request Forgery in Filebrowser

High 8.8 Published Updated

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.

PackageAffectedFixed in
github.com/filebrowser/filebrowser/v2 GoAll versions2.18.0
github.com/filebrowser/filebrowser/v2 GoAll versions2.18.0
github.com/filebrowser/filebrowser/v2 GoAll versions2.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.

Sources

Also known as GHSA-72wf-hwcq-65h9, GO-2022-0563.

Is CVE-2021-46398 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free