GHSA-964w-f6gj-5236: goshs has ACL Bypass & Path Traversal
Summary
goshs (a file server) has a security flaw where appending a trailing slash to a file request bypasses access controls. The bug occurs because the code checks file permissions using the raw request path, but opens files using a cleaned path, and a trailing slash causes the permission check to use an empty filename. This allows attackers to read blocked files and even the ACL configuration file (which contains password hashes) without authentication.
Solution / Mitigation
Derive the served filename from the same cleaned path (the standardized file path) used to open the file, so the authorization decision and the file access cannot disagree.
Vulnerability Details
EPSS: 0.0%
Yes
July 28, 2026
Classification
Affected Packages
Original source: https://github.com/advisories/GHSA-964w-f6gj-5236
First tracked: July 28, 2026 at 08:00 PM
Classified by LLM (prompt v3) · confidence: 95%