CVE-2026-66064 goshs has ACL Bypass & Path Traversal

Medium 5.3 Published Updated

Attackers can bypass ACL protections and access restricted files via path traversal in the goshs file server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-66064?

CVE-2026-66064 is a medium-severity path traversal vulnerability in goshs-labs goshs, published on 28 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-863, CWE-41

Which versions are affected by CVE-2026-66064?

11 open source packages ship an affected version, including github.com/patrickhener/goshs, github.com/patrickhener/goshs/v2 and goshs.de/goshs.

PackageAffectedFixed in
github.com/patrickhener/goshs GoAll versionsNone
github.com/patrickhener/goshs GoAll versions to 1.1.4None
github.com/patrickhener/goshs GoAll versions to 1.1.4None
github.com/patrickhener/goshs/v2 GoAll versions2.1.5-0.20260727065949-f3ef599e4091
github.com/patrickhener/goshs/v2 GoAll versions2.1.5-0.20260727065949-f3ef599e4091
goshs.de/goshs GoAll versionsNone
5 more packages
goshs.de/goshs GoAll versions to 1.1.4None
goshs.de/goshs GoAll versions to 1.1.4None
goshs.de/goshs/v2 GoAll versions2.1.5-0.20260727065949-f3ef599e4091
goshs.de/goshs/v2 GoAll versions2.1.5-0.20260727065949-f3ef599e4091
goshs.de/goshs/v2 GoAll versions2.1.5-0.20260727065949-f3ef599e4091

How do I fix CVE-2026-66064?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-66064 being exploited?

There is no known exploitation of CVE-2026-66064 in the wild and no public exploit code.

Sources

Also known as GHSA-964w-f6gj-5236, GO-2026-6134.

Is CVE-2026-66064 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free