{"answers":{"affected":"4 open source packages ship an affected version, including github.com/filebrowser/filebrowser/v2 and github.com/filebrowser/filebrowser. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-35585 exists.","fix":"Upgrade github.com/filebrowser/filebrowser/v2 to 2.33.8 or later.","what":"CVE-2026-35585 is a high-severity command injection vulnerability in filebrowser, published on 7 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-35585 and fix it if it is affected.\n\nWhat it is: CVE-2026-35585 is a high-severity command injection vulnerability in filebrowser, published on 7 Apr 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-35585 exists.\n\nAffected packages and fixed versions:\n- github.com/filebrowser/filebrowser/v2 (Go): affected all versions; fixed in 2.33.8\n- github.com/filebrowser/filebrowser/v2 (Go): affected all versions; fixed in 2.33.8\n- github.com/filebrowser/filebrowser/v2 (Go): affected all versions; fixed in 2.33.8\n- github.com/filebrowser/filebrowser (Go): affected all versions; no fix listed\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-2026-35585/ (Markdown: https://insights.sbomify.com/CVE-2026-35585/index.md)","id":"CVE-2026-35585","markdown":"https://insights.sbomify.com/CVE-2026-35585/index.md","name":"CVE-2026-35585","record":{"aliases":["GHSA-jvpw-637p-h3pw","GO-2026-5481"],"analysis":{"component_type":"web_application","fix_type":"configuration_change","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"File Browser","requires_auth":"high_privilege","summary":"An attacker with file write permissions can execute arbitrary OS commands via malicious filenames in the hook system, requiring the feature to be enabled.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"filebrowser","vendor":"filebrowser"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"File Browser is a file managing interface for uploading, deleting, previewing, renaming, and editing files within a specified directory. From 2.0.0 until 2.33.8, the hook system in File Browser — which executes administrator-defined shell commands on file events such as upload, rename, and delete — is vulnerable to OS command injection. Variable substitution for values like $FILE and $USERNAME is performed via os.Expand without sanitization. An attacker with file write permission can craft a malicious filename containing shell metacharacters, causing the server to execute arbitrary OS commands when the hook fires. This results in Remote Code Execution (RCE). This feature has been disabled by default for all installations from v2.33.8 onwards, including for existent installations.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":"2026-04-14","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-04-14T12:11:36Z","kind":"github_poc","ref":"https://github.com/Saku0512/CVE-2026-35585-poc","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"File Browser has a Command Injection via Hook Runner","id":"CVE-2026-35585","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":4,"n_references":2,"next":{"headline":"Authorization Bypass for SSL Certificate/Key Configuration Due to Option Name Mismatch in pyload-ng","id":"CVE-2026-35586"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/filebrowser/filebrowser","purl":"pkg:golang/github.com/filebrowser/filebrowser","source":"GO-2026-5481"},{"ecosystem":"Go","fixed":["2.33.8"],"introduced":["0"],"last_affected":[],"package":"github.com/filebrowser/filebrowser/v2","purl":null,"source":"GHSA-jvpw-637p-h3pw"},{"ecosystem":"Go","fixed":["2.33.8"],"introduced":["0"],"last_affected":[],"package":"github.com/filebrowser/filebrowser/v2","purl":"pkg:golang/github.com/filebrowser/filebrowser/v2","source":"GHSA-jvpw-637p-h3pw"},{"ecosystem":"Go","fixed":["2.33.8"],"introduced":["0"],"last_affected":[],"package":"github.com/filebrowser/filebrowser/v2","purl":"pkg:golang/github.com/filebrowser/filebrowser/v2","source":"GO-2026-5481"}],"prev":{"headline":"Missing authorization in freescout","id":"CVE-2026-35584"},"products":["filebrowser"],"published":"2026-04-07","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.8,"headline":"Cross-Site Request Forgery in Filebrowser","id":"CVE-2021-46398","kev_date_added":null,"published":"2022-02-04"},{"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-09","vendors":["filebrowser"]},"summary":"An attacker with file write permissions can execute arbitrary OS commands via malicious filenames in the hook system, requiring the feature to be enabled.","url":"https://insights.sbomify.com/CVE-2026-35585/"}