Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gtsteffaniak/filebrowser/backend
  4. ›
  5. GHSA-qqqm-5547-774x

GHSA-qqqm-5547-774x: FileBrowser Quantum: Path traversal in public share PATCH allows file ops outside shared directory

May 22, 2026 (updated June 8, 2026)

publicPatchHandler in backend/http/public.go joins user-controlled fromPath and toPath body fields with the trusted d.share.Path BEFORE the downstream sanitizer runs. Because filepath.Join collapses .. segments during the join, the sanitizer in resourcePatchHandler never sees the traversal and the move/copy/rename operates on a path outside the shared directory. The same root-cause pattern was patched for the bulk DELETE endpoint as CVE-2026-44542 (GHSA-fwj3-42wh-8673), but the PATCH handler with the identical pattern was not updated.

A public share link with AllowModify=true is sufficient to exploit this. Anyone holding such a link can move, copy, or rename arbitrary files within the share owner’s source root.

Verified on commit 869b640 (HEAD of main as of 2026-05-07).

References

  • github.com/advisories/GHSA-qqqm-5547-774x
  • github.com/gtsteffaniak/filebrowser/security/advisories/GHSA-qqqm-5547-774x
  • nvd.nist.gov/vuln/detail/CVE-2026-48777

Code Behaviors & Features

Detect and mitigate GHSA-qqqm-5547-774x 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 0.0.0-20260518193514-28e9b81e438e

Fixed versions

  • 0.0.0-20260518193514-28e9b81e438e

Solution

Upgrade to version 0.0.0-20260518193514-28e9b81e438e or above.

Impact 9.1 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/gtsteffaniak/filebrowser/backend/GHSA-qqqm-5547-774x.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 23 Jun 2026 12:22:38 +0000.