{"answers":{"affected":"3 open source packages ship an affected version, including github.com/filebrowser/filebrowser/v2. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-46398 in the wild and no public exploit code.","fix":"Upgrade github.com/filebrowser/filebrowser/v2 to 2.18.0 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2021-46398 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2021-46398 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/filebrowser/filebrowser/v2 (Go): affected all versions; fixed in 2.18.0\n- github.com/filebrowser/filebrowser/v2 (Go): affected all versions; fixed in 2.18.0\n- github.com/filebrowser/filebrowser/v2 (Go): affected all versions; fixed in 2.18.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-46398/ (Markdown: https://insights.sbomify.com/CVE-2021-46398/index.md)","id":"CVE-2021-46398","markdown":"https://insights.sbomify.com/CVE-2021-46398/index.md","name":"CVE-2021-46398","record":{"aliases":["GHSA-72wf-hwcq-65h9","GO-2022-0563"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["privilege_escalation","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Filebrowser web app","requires_auth":"none","summary":"Attackers can exploit CSRF to create an admin user and execute arbitrary commands via Filebrowser, leading to remote code execution.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"filebrowser","vendor":"filebrowser"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"A Cross-Site Request Forgery vulnerability exists in Filebrowser \u003c 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.","ecosystems":["Go"],"exploits":{"exploitdb":1,"first_seen":"2022-02-08","github_poc":2,"max_poc_stars":5,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-03-22T17:35:38Z","kind":"github_poc","ref":"https://github.com/febinrev/CVE-2021-46398_Chamilo-LMS-RCE","stars":5,"title":"Chamilo LMS v1.11.14 was discovered to contain a zero click code injection vulnerability which allows attackers to execute arbitrary code via a crafted plugin. This vulnerability is triggered through user interaction with the attacker's profile page."},{"date":"2022-02-08","kind":"exploitdb","ref":"50717","stars":null,"title":"FileBrowser 2.17.2 - Cross Site Request Forgery (CSRF) to Remote Code Execution (RCE)"},{"date":"2023-01-03T09:49:22Z","kind":"github_poc","ref":"https://github.com/LalieA/CVE-2021-46398","stars":0,"title":"A Proof of Concept for the CVE-2021-46398 flaw exploitation "}],"tier":"poc_unverified"},"has_fix":true,"headline":"Cross-Site Request Forgery in Filebrowser","id":"CVE-2021-46398","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"csrf","year":"2021"},"n_packages":3,"n_references":6,"next":{"headline":"Memory corruption in n/a","id":"CVE-2021-46408"},"packages":[{"ecosystem":"Go","fixed":["2.18.0"],"introduced":["0"],"last_affected":[],"package":"github.com/filebrowser/filebrowser/v2","purl":null,"source":"GHSA-72wf-hwcq-65h9"},{"ecosystem":"Go","fixed":["2.18.0"],"introduced":["0"],"last_affected":[],"package":"github.com/filebrowser/filebrowser/v2","purl":"pkg:golang/github.com/filebrowser/filebrowser/v2","source":"GHSA-72wf-hwcq-65h9"},{"ecosystem":"Go","fixed":["2.18.0"],"introduced":["0"],"last_affected":[],"package":"github.com/filebrowser/filebrowser/v2","purl":"pkg:golang/github.com/filebrowser/filebrowser/v2","source":"GO-2022-0563"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2021-46394"},"products":["n/a"],"published":"2022-02-04","related":[{"cvss_score":10,"headline":"File Browser Self Registration Grants Any User Admin Access When Default Permissions Include Admin","id":"CVE-2026-32760","kev_date_added":null,"published":"2026-03-19"},{"cvss_score":9.1,"headline":"File Browser: TUS Delete Endpoint Bypasses Delete Permission Check","id":"CVE-2026-29188","kev_date_added":null,"published":"2026-03-05"},{"cvss_score":9,"headline":"Cross-site scripting in n/a","id":"CVE-2023-39612","kev_date_added":null,"published":"2023-09-16"},{"cvss_score":8.9,"headline":"FileBrowser Quantum: Stored XSS in public share page via unsanitized share metadata (text/template misuse)","id":"CVE-2026-30934","kev_date_added":null,"published":"2026-03-10"},{"cvss_score":8.2,"headline":"File Browser share links remain accessible after Share/Download permissions are revoked","id":"CVE-2026-35604","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":8.1,"headline":"File Browser: Proxy auth auto-provisioned users inherit Execute permission and Commands","id":"CVE-2026-35607","kev_date_added":null,"published":"2026-04-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Attackers can exploit CSRF to create an admin user and execute arbitrary commands via Filebrowser, leading to remote code execution.","url":"https://insights.sbomify.com/CVE-2021-46398/"}