CVE-2026-54719: goshs: File-based .goshs ACL authorization bypass via the ?bulk zip-download route (unauthenticated read; residual of GHSA-wvhv-qcqf-f3cx)
GHSA-wvhv-qcqf-f3cx fixed the per-folder .goshs ACL bypass on the state-changing routes (PUT/POST upload/?mkdir/?delete) and added recursive ACL resolution, and its description states the read/list path correctly enforces .goshs. That premise does not hold for the ?bulk zip-download route.
Published Jul 28, 2026
Affected packages
github.com/patrickhener/goshs
- Ecosystem
- Go
- Affected
- <= 1.1.4
- Fixed in
- No patched version yet
- Check
go list -m github.com/patrickhener/goshs
github.com/patrickhener/goshs/v2
- Ecosystem
- Go
- Affected
- <= 2.1.0
- Fixed in
- 2.1.1
- Check
go list -m github.com/patrickhener/goshs/v2
goshs.de/goshs
- Ecosystem
- Go
- Affected
- <= 1.1.4
- Fixed in
- No patched version yet
- Check
go list -m goshs.de/goshs
goshs.de/goshs/v2
- Ecosystem
- Go
- Affected
- <= 2.1.0
- Fixed in
- 2.1.1
- Check
go list -m goshs.de/goshs/v2
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
GHSA-wvhv-qcqf-f3cx fixed the per-folder .goshs ACL bypass on the state-changing routes (PUT/POST upload/?mkdir/?delete) and added recursive ACL resolution, and its description states the read/list path correctly enforces .goshs. That premise does not hold for the ?bulk zip-download route. bulkDownload (httpserver/updown.go) takes one or more ?file= parameters, runs each through sanitizePath(fs.Webroot, file), and streams the contents back as a ZIP without ever calling findEffectiveACL/applyCustomAuth. It is dispatched from earlyBreakParameters (?bulk) before the normal doDir/doFile/sendFile flow that performs the ACL check. An unauthenticated attacker can therefore read any file under the webroot protected solely by a .goshs ACL, bypassing both the folder auth (401 on the normal path) and the per-file block list (404 on the normal path). Same authorization-inconsistency root cause as the original advisory, surviving on a read route the fix did not cover.
Proof of concept (live, against the fixed v2.1.0 build which includes fix commit f212c4f4, served with no global -b auth, only a per-folder .goshs): GET /protected/secret.txt -> 401 (ACL enforced on normal path) GET /protected/secret.txt -u admin:admin -> 200 GET /?bulk&file=/protected/secret.txt -> 200, zip contains the protected file contents (BYPASS) GET /?bulk&file=/protected/blocked.txt -> 200, zip contains the block-listed file (block bypass) GET /protected/secret.txt?share -> 403 'Sharing disabled when auth is disabled' (correctly gated, NOT a bypass)
Impact: any unauthenticated network attacker can read files an operator protected with the documented per-folder .goshs ACL/basic-auth feature, by requesting them through ?bulk. Confidentiality only (the write/delete equivalents were closed by GHSA-wvhv-qcqf-f3cx). Applies to deployments relying on .goshs as the access boundary (a server-wide -b basic auth, if configured, also gates ?bulk via its middleware).
Remediation: enforce the effective .goshs ACL inside bulkDownload for every requested file exactly as sendFile/processDir do (resolve findEffectiveACL(filepath.Dir(absPath)) + applyCustomAuth + honor acl.Block), or route ?bulk through the same authorization gate as the normal read path. Audit ?cbDown and other alternate read routes for the same gap.
Credit: anir0y (independent security research).
Credited to anir0y.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-62325
goshs SFTP authentication bypass via empty password (incomplete fix of CVE-2026-40884)
critical9.1Jul 28, 2026CVE-2026-64863
goshs --no-delete WebDAV MOVE bypass allows file deletion/overwrite
critical9.1No fixJul 28, 2026CVE-2026-66063
goshs has a Path Traversal issue
medium6.5No fixJul 28, 2026CVE-2026-66064
goshs has ACL Bypass & Path Traversal
medium5.3No fixJul 28, 2026CVE-2026-50138
goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags
high8.1Jul 1, 2026CVE-2026-50139
goshs: Share-link ?token=… redemption races past download limit
medium5.9Jul 1, 2026
