Vulnerability · Published Jul 28, 2026 · Assigned by GitHub_M
CVE-2026-66064goshs has ACL Bypass & Path Traversal
Medium 5.3
In plain English
A medium-severity incorrect authorization in goshs from goshs-labs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/patrickhener/goshs | no fix listed | GO-2026-6134 |
| Go | github.com/patrickhener/goshs | no fix listed | GHSA-964w-f6gj-5236 |
| Go | github.com/patrickhener/goshs/v2 | 2.1.5-0.20260727065949-f3ef599e4091 | GHSA-964w-f6gj-5236 |
| Go | goshs.de/goshs | no fix listed | GHSA-964w-f6gj-5236 |
| Go | goshs.de/goshs | no fix listed | GO-2026-6134 |
| Go | goshs.de/goshs/v2 | 2.1.5-0.20260727065949-f3ef599e4091 | GO-2026-6134 |
| Go | goshs.de/goshs/v2 | 2.1.5-0.20260727065949-f3ef599e4091 | GHSA-964w-f6gj-5236 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| goshs-labs | goshs | < 2.1.5 |
Weakness: CWE-41, CWE-863 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
References
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-964w-f6gj-5236 x_refsource_CONFIRM
- https://github.com/goshs-labs/goshs/pull/222 x_refsource_MISC
- https://github.com/goshs-labs/goshs/commit/f3ef599e409151d1380866e47de8b1afb0bb54fa x_refsource_MISC