Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
8.1

CVE-2026-50138: goshs WebDAV ignores read-only, upload-only, and no-delete flags

CVE-2026-50138 · published 2 months ago
Summary

The WebDAV feature in goshs doesn't follow the intended restrictions. This means an authorized user can still upload, delete, or move files even if you've set goshs to only read or only upload files. To fix this, update to a version of goshs that has the WebDAV restrictions working correctly.

What to do
  • Update goshs.de goshs to version 2.1.0.
Affected software
Ecosystem VendorProductAffected versions
go goshs.de goshs <= 2.0.9
Fix: upgrade to 2.1.0
– patrickhener goshs < 2.1.0
Original advisory text
goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags
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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
8.1 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-284Improper Access Control
Timeline
Published18 Aug 2026
Updated4 Nov 2026
First seen1 Jul 2026
Sources
CVE-2026-50138 · MITRE
Track software like this
Free during beta