{"id":"GHSA-m93h-4hw7-5qcm","revision":null,"records":[{"revision":"f97fddfe713248ab9e76d1f29992505b","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-54088","aliases":[],"title":"File Browser: Command Injection via Authentication Hook Shell Substitution (Pre-Authentication RCE)","description":"File Browser is a file managing interface for uploading, deleting, previewing, renaming, and editing files within a specified directory. Prior to 2.63.6, the Hook Authentication feature in File Browser allows administrators to delegate login verification to an external shell command. User-supplied credentials (username and password) are interpolated into this command string using os.Expand without sanitization. An unauthenticated remote attacker can inject shell metacharacters in the username or password field at the login screen, causing the server to execute arbitrary OS commands before any authentication takes place. This is a critical pre-authentication RCE. This vulnerability is fixed in 2.63.6.","state":0,"publishedAt":"2026-06-25T17:49:14.017+00:00","modifiedAt":"2026-06-25T18:36:52.953+00:00","affected":[{"ecosystem":"Vendor product","name":"filebrowser","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"filebrowser\",\n                    \"product\": \"filebrowser\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.63.6\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"severity":"CRITICAL"}],"references":["https://github.com/filebrowser/filebrowser/security/advisories/GHSA-m93h-4hw7-5qcm"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-54088","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-54088","identifiers":["CVE-2026-54088"]},"retained":false,"historicalAffected":[]},{"revision":"b737d58bc7064c8ba9b994aedd85a7de","observedAt":"2026-11-23T17:28:59.939+00:00","statement":{"source":"euvd","id":"EUVD-2026-39510","aliases":["CVE-2026-54088","GHSA-m93h-4hw7-5qcm"],"title":"File Browser is a file managing interface for uploading, deleting, previewing, renaming, and editing files within a specified directory. Prior to 2.63.6, the Hook Authentication feature in File Browser allows administrators to delegate logi…","description":"File Browser is a file managing interface for uploading, deleting, previewing, renaming, and editing files within a specified directory. Prior to 2.63.6, the Hook Authentication feature in File Browser allows administrators to delegate login verification to an external shell command. User-supplied credentials (username and password) are interpolated into this command string using os.Expand without sanitization. An unauthenticated remote attacker can inject shell metacharacters in the username or password field at the login screen, causing the server to execute arbitrary OS commands before any authentication takes place. This is a critical pre-authentication RCE. This vulnerability is fixed in 2.63.6.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"severity":null}],"references":["https://github.com/filebrowser/filebrowser/security/advisories/GHSA-m93h-4hw7-5qcm"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-39510","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jun 25, 2026, 5:49:14 PM","dateUpdated":"Jun 25, 2026, 6:36:52 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-39510","identifiers":["EUVD-2026-39510","CVE-2026-54088","GHSA-m93h-4hw7-5qcm"]},"retained":false,"historicalAffected":[]},{"revision":"63e9d75276c34ddf9380679a5c0a118c","observedAt":"2026-10-25T13:17:22.268+00:00","statement":{"source":"nvd","id":"CVE-2026-54088","aliases":[],"title":"File Browser is a file managing interface for uploading, deleting, previewing, renaming, and editing files within a specified directory. Prior to 2.63.6, the Hook Authentication feature in File Browser allows administrators to delegate logi…","description":"File Browser is a file managing interface for uploading, deleting, previewing, renaming, and editing files within a specified directory. Prior to 2.63.6, the Hook Authentication feature in File Browser allows administrators to delegate login verification to an external shell command. User-supplied credentials (username and password) are interpolated into this command string using os.Expand without sanitization. An unauthenticated remote attacker can inject shell metacharacters in the username or password field at the login screen, causing the server to execute arbitrary OS commands before any authentication takes place. This is a critical pre-authentication RCE. This vulnerability is fixed in 2.63.6.","state":0,"publishedAt":"2026-06-25T19:16:40.687+00:00","modifiedAt":"2026-06-25T19:58:30.847+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security-advisories@github.com · Secondary","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","score":9.3,"severity":"CRITICAL"}],"references":["https://github.com/filebrowser/filebrowser/security/advisories/GHSA-m93h-4hw7-5qcm"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-54088","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-78","CWE-88","CWE-306"],"productCriteria":[],"sourceDates":{"published":"2026-06-25T19:16:40.687","lastModified":"2026-06-25T19:58:30.847"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-54088","identifiers":["CVE-2026-54088"]},"retained":false,"historicalAffected":[]},{"revision":"b2c7a2aa8b0446fcbc24f9b6bef1a482","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-m93h-4hw7-5qcm","aliases":["CVE-2026-54088","GO-2026-5962"],"title":"File Browser: Command Injection via Authentication Hook Shell Substitution (Pre-Authentication RCE)","description":"## Overview\n\nThe Hook Authentication feature in File Browser allows administrators to delegate login verification to an external shell command. User-supplied credentials (username and password) are interpolated into this command string using `os.Expand` without sanitization. An **unauthenticated remote attacker** can inject shell metacharacters in the username or password field at the login screen, causing the server to execute arbitrary OS commands before any authentication takes place. This is a **critical pre-authentication RCE**.\n\n## Affected Location\n\n- **File:** `auth/hook.go`\n- **Function:** `HookAuth.RunCommand`\n\n## CVSS v4.0\n\n| Metric | Value | Rationale |\n|---|---|---|\n| Attack Vector (AV) | Network (N) | Exploitable via the login endpoint over HTTP from any network |\n| Attack Complexity (AC) | Low (L) | Single crafted HTTP request; no preparation needed |\n| Attack Requirements (AT) | None (N) | No race condition or special timing required |\n| Privileges Required (PR) | **None (N)** | **No account required — pre-authentication attack** |\n| User Interaction (UI) | None (N) | Fully automated; no victim action needed |\n| Vulnerable System Confidentiality (VC) | High (H) | Full read access to server filesystem and env |\n| Vulnerable System Integrity (VI) | High (H) | Arbitrary file write/modification |\n| Vulnerable System Availability (VA) | High (H) | Can kill processes, exhaust resources |\n| Subsequent System Confidentiality (SC) | None (N) | No direct impact on downstream systems assumed |\n| Subsequent System Integrity (SI) | None (N) | — |\n| Subsequent System Availability (SA) | None (N) | — |\n\n**Vector String:** `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`\n**Base Score: 9.3 (Critical)**\n\n> **Note:** `PR:None` is the critical differentiator from vulnerabilities 01 and 02. Because the injection point is the unauthenticated login endpoint, no account or session is required. A single HTTP request to the login API is sufficient to achieve RCE.\n\n## CWE\n\n| ID | Name | Role |\n|---|---|---|\n| [CWE-78](https://cwe.mitre.org/data/definitions/78.html) | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | Primary — attacker-supplied credentials embedded in shell command string via `os.Expand` |\n| [CWE-88](https://cwe.mitre.org/data/definitions/88.html) | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | Secondary — `$USERNAME`/`$PASSWORD` expansion injects additional shell commands |\n| [CWE-306](https://cwe.mitre.org/data/definitions/306.html) | Missing Authentication for Critical Function | Secondary — OS command execution is reachable before any authentication is verified |\n\n## Technical Details\n\n`HookAuth.RunCommand` builds the authentication command and substitutes credential values using `os.Expand`:\n\n```go\n// auth/hook.go\nenvMapping := func(key string) string {\n    switch key {\n    case \"USERNAME\":\n        return a.Cred.Username  // directly from the HTTP login request body\n    case \"PASSWORD\":\n        return a.Cred.Password  // directly from the HTTP login request body\n    default:\n        return os.Getenv(key)\n    }\n}\n\nfor i, arg := range command {\n    if i == 0 { continue }\n    command[i] = os.Expand(arg, envMapping) // no escaping applied\n}\n```\n\n`os.Expand` performs plain text substitution. There is no escaping, quoting, or validation of the credential values before they are embedded into the command string.\n\nIf an admin has configured the hook authentication command as:\n\n```\nsh -c \"test $USERNAME = 'admin'\"\n```\n\n...and an attacker submits the username `; id #` at the login screen, the expanded command becomes:\n\n```sh\nsh -c \"test ; id # = 'admin'\"\n```\n\nThe `;` terminates the `test` expression and the shell executes `id`. The `#` comments out the remainder, preventing a syntax error. The attacker's command runs with the privileges of the File Browser process — **without needing a valid account or password**.\n\n## Attack Scenario / Reproduction Steps\n\n1. Admin enables Hook Authentication and sets the command to:\n   ```\n   sh -c \"test $USERNAME = 'admin'\"\n   ```\n2. An unauthenticated attacker sends a login request (e.g., via `curl` or the web UI) with:\n   - **Username:** `; id #`\n   - **Password:** (any value)\n3. The server executes:\n   ```sh\n   sh -c \"test ; id # = 'admin'\"\n   ```\n4. The `id` command runs on the server, confirming pre-authentication RCE.\n\nNo account is needed. The attacker does not need to know any valid credentials. A single request is sufficient.\n\n## Impact\n\nAn unauthenticated remote attacker can execute arbitrary OS commands on the server under the privilege level of the File Browser process. This is the most severe class of vulnerability in this codebase:\n\n- **No authentication required** — exposed to the entire internet if the service is public-facing.\n- **Single request** — no setup, no enumeration, no prior foothold.\n- Full server compromise: data exfiltration, persistent backdoor installation, lateral movement to internal networks.\n\nAny internet-facing File Browser instance with Hook Authentication enabled is fully compromised by a single malformed login attempt.\n\n## Proof of Concept\n\n```go\npackage auth\n\nimport (\n        \"os\"\n        \"strings\"\n        \"testing\"\n)\n\nfunc TestPoC_AuthHookInjection(t *testing.T) {\n        // Simulate the admin-configured hook authentication command.\n        // This represents a realistic configuration: verify the username via a shell expression.\n        a := &HookAuth{\n                Command: \"sh -c $USERNAME\",\n                Cred: hookCred{\n                        // Attacker-supplied username from the login form.\n                        // The password is irrelevant.\n                        Username: \"id ; echo injected\",\n                        Password: \"anything\",\n                },\n        }\n\n        // Simulate the RunCommand logic in auth/hook.go\n        command := strings.Split(a.Command, \" \")\n\n        envMapping := func(key string) string {\n                if key == \"USERNAME\" {\n                        return a.Cred.Username\n                }\n                return os.Getenv(key)\n        }\n\n        for i, arg := range command {\n                if i == 0 {\n                        continue\n                }\n                // os.Expand substitutes $USERNAME with the attacker's input.\n                // The result is treated as a shell script — no escaping is applied.\n                command[i] = os.Expand(arg, envMapping)\n        }\n\n        // The shell will execute: sh -c \"id ; echo injected\"\n        expectedArg := \"id ; echo injected\"\n        if command[2] != expectedArg {\n                t.Errorf(\"Expected command argument %q, got %q\", expectedArg, command[2])\n        }\n\n        t.Logf(\"Confirmed: malicious username was injected as a shell script. Executing: %v\", command)\n}\n```\n\n## Remediation\n\nPass credentials exclusively as environment variables, not as shell string substitutions. This feature is undocumented, so removing it should not cause issues.","state":0,"publishedAt":"2026-07-10T19:32:32+00:00","modifiedAt":"2026-07-21T19:19:08.492653+00:00","affected":[{"ecosystem":"Go","name":"github.com/filebrowser/filebrowser/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.63.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/filebrowser/filebrowser/security/advisories/GHSA-m93h-4hw7-5qcm","https://nvd.nist.gov/vuln/detail/CVE-2026-54088","https://github.com/filebrowser/filebrowser"],"sourceUrl":"https://github.com/advisories/GHSA-m93h-4hw7-5qcm","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-m93h-4hw7-5qcm","identifiers":["GHSA-m93h-4hw7-5qcm","CVE-2026-54088","GO-2026-5962"]},"retained":false,"historicalAffected":[]},{"revision":"eb3ab2a1ed054e10bf9c5d63b3d78836","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5962","aliases":["CVE-2026-54088","GHSA-m93h-4hw7-5qcm"],"title":"File Browser: Command Injection via Authentication Hook Shell Substitution (Pre-Authentication RCE) in github.com/filebrowser/filebrowser","description":"File Browser: Command Injection via Authentication Hook Shell Substitution (Pre-Authentication RCE) in github.com/filebrowser/filebrowser","state":0,"publishedAt":"2026-07-17T19:42:05+00:00","modifiedAt":"2026-07-21T19:15:29.2497874+00:00","affected":[{"ecosystem":"Go","name":"github.com/filebrowser/filebrowser","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/filebrowser/filebrowser/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.63.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/filebrowser/filebrowser/security/advisories/GHSA-m93h-4hw7-5qcm","https://nvd.nist.gov/vuln/detail/CVE-2026-54088"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5962","license":"OSV · upstream source license applies","key":"osv:GO-2026-5962","identifiers":["GO-2026-5962","CVE-2026-54088","GHSA-m93h-4hw7-5qcm"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T10:25:38.0572702+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T10:25:38.0572702+00:00","lastSuccessAt":"2026-11-24T10:25:38.2623601+00:00","error":null,"lastVerifiedAt":"2026-11-24T10:25:38.2623604+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-1be1649954408d500b0535002b41bdb67e30074fc92c9395f083ebe1d12ff2ac","complete":true,"records":431088,"lastAttemptAt":"2026-11-24T10:25:33.5287615+00:00","lastSuccessAt":"2026-11-24T10:25:33.4540555+00:00","error":null,"lastVerifiedAt":"2026-11-24T10:25:33.5287615+00:00","snapshotPublishedAt":"2026-11-24T09:30:33+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-85abec94378a4597b324976075f86c48","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T10:36:07.2184973+00:00","lastSuccessAt":"2026-11-24T10:36:06.195+00:00","error":"467 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T10:36:06.195+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13095,"expectedIdentifiers":13982,"failedIdentifiers":467},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T10:25:38.0572702+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T10:25:38.0572702+00:00","lastSuccessAt":"2026-11-24T10:25:38.2630877+00:00","error":null,"lastVerifiedAt":"2026-11-24T10:25:38.2630878+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b3fbd2c15cde47d5865eaf2dc45b903a","complete":false,"records":13947,"lastAttemptAt":"2026-11-24T10:25:53.1519931+00:00","lastSuccessAt":"2026-11-24T10:25:53.148+00:00","error":null,"lastVerifiedAt":"2026-11-24T10:25:53.148+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13782,"expectedIdentifiers":13982,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-c86437892ddabdeaf17409463a17578b1e71dd185d64061100dd57629858f6d6","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T10:25:33.7890574+00:00","lastSuccessAt":"2026-11-23T22:27:19.6557603+00:00","error":null,"lastVerifiedAt":"2026-11-24T10:25:33.7890574+00:00","snapshotPublishedAt":"2026-11-23T21:33:52+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T10:25:33.5876523+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T10:25:33.5876523+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3afd4dd07a6bf352a6a53c4438150c464a2527017b95ca94804134ea15f1eba9","complete":true,"records":3220,"lastAttemptAt":"2026-11-24T10:25:38.009267+00:00","lastSuccessAt":"2026-11-24T10:25:37.8779609+00:00","error":null,"lastVerifiedAt":"2026-11-24T10:25:38.009267+00:00","snapshotPublishedAt":"2026-11-24T09:33:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-b3f815f4b80e6ee7009a469e05600427b49c4c540d96b9bae57af39cb7a4c7df","complete":true,"records":232959,"lastAttemptAt":"2026-11-24T10:25:33.6858631+00:00","lastSuccessAt":"2026-11-24T08:27:06.9384925+00:00","error":null,"lastVerifiedAt":"2026-11-24T10:25:33.6858631+00:00","snapshotPublishedAt":"2026-11-24T07:33:55+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}