CVE-2026-50138 goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags
Authenticated WebDAV clients can modify or delete files despite read-only or upload-only restrictions, bypassing intended access controls.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-50138?
CVE-2026-50138 is a high-severity missing authorization vulnerability in patrickhener goshs, published on 18 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
goshs is a SimpleHTTPServer written in Go. Prior to version 2.1.0, when `goshs` is launched with WebDAV enabled (`-w`), the mode-restriction flags `--read-only`, `--upload-only`, and `--no-delete` are enforced only on the primary HTTP port. The WebDAV port is wired straight to `golang.org/x/net/webdav.Handler` with no equivalent guard, so an authenticated WebDAV client can `PUT`, `DELETE`, `MKCOL`, `MOVE`, and `COPY` despite the operator's stated intent. Version 2.1.0 patches the issue.
Weakness: CWE-284
Which versions are affected by CVE-2026-50138?
4 open source packages ship an affected version, including goshs.de/goshs/v2 and goshs.de/goshs.
| Package | Affected | Fixed in |
|---|---|---|
goshs.de/goshs/v2 Go | All versions | 2.1.0 |
goshs.de/goshs/v2 Go | All versions | 2.1.0 |
goshs.de/goshs/v2 Go | All versions | 2.1.0 |
goshs.de/goshs Go | All versions | None |
How do I fix CVE-2026-50138?
Upgrade goshs.de/goshs/v2 to 2.1.0 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2026-50138 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-50138 exists.
Sources
Also known as GHSA-3whc-qvhv-xqjp, GO-2026-5878.