Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/filebrowser/filebrowser/v2/http
  4. ›
  5. CVE-2021-46398

CVE-2021-46398: Cross-Site Request Forgery (CSRF)

February 5, 2022 (updated February 9, 2023)

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.

References

  • packetstormsecurity.com/files/165885/FileBrowser-2.17.2-Code-Execution-Cross-Site-Request-Forgery.html
  • febin0x4e4a.blogspot.com/2022/01/critical-csrf-in-filebrowser.html
  • febin0x4e4a.wordpress.com/2022/01/19/critical-csrf-in-filebrowser/
  • febinj.medium.com/critical-csrf-to-rce-in-filebrowser-865a3c34b8e7
  • github.com/advisories/GHSA-72wf-hwcq-65h9
  • github.com/filebrowser/filebrowser/commit/74b7cd8e81840537a8206317344f118093153e8d
  • github.com/filebrowser/filebrowser/issues/1621
  • nvd.nist.gov/vuln/detail/CVE-2021-46398
  • pkg.go.dev/vuln/GO-2022-0563
  • systemweakness.com/critical-csrf-to-rce-in-filebrowser-865a3c34b8e7

Code Behaviors & Features

Detect and mitigate CVE-2021-46398 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.18.0

Fixed versions

  • v2.18.0

Solution

Upgrade to version 2.18.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)
  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

go/github.com/filebrowser/filebrowser/v2/http/CVE-2021-46398.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:30 +0000.