medium5.3
CVE-2026-66064
goshs is a feature-rich single-binary file server for red teamers and developers.
Impact
goshs is a feature-rich single-binary file server for red teamers and developers. Prior to 2.1.5, the httpserver/handler.go sendFile handler opened files using a cleaned path but derived the authorization filename from raw req.URL.Path, so a trailing slash could bypass .goshs ACL-file protection and block-list checks. This issue is fixed in version 2.1.5.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/patrickhener/goshs/v2 | <= 2.1.4 | 2.1.5-0.20260727065949-f3ef599e4091 |
| go | goshs.de/goshs/v2 | <= 2.1.4 | 2.1.5-0.20260727065949-f3ef599e4091 |
| go | github.com/patrickhener/goshs | <= 1.1.4 | none recorded |
| go | goshs.de/goshs | <= 1.1.4 | none recorded |