Filebrowser
File Browser: Path Traversal in Public Share Links Exposes Files Outside Shared Directory
File Browser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit files. Prior to version 2.61.0, when a user creates a public share link for a directory, the withHashFile middleware in http/public.go uses filepath.Dir(link.Path) to compute the BasePathFs root. This sets the filesystem root to the parent directory instead of the shared directory itself, allowing anyone with the share link to browse and download files from all sibling directories. This issue has been patched in version 2.61.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.61.0
Fixed in 2.61.0
Mitigation
Upgrade filebrowser to 2.61.0 or later.
References
- Vendor advisory github.com/filebrowser/filebrowser/security/ad…
- Patch github.com/filebrowser/filebrowser/commit/3119…
- Release notes github.com/filebrowser/filebrowser/releases/ta…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.