CVE-2026-50138 goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags
HighCVSS 8.1
EPSS 0.38%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| goshs.de/goshs/v2(Go) | < 2.1.0; <= 2.0.9; All versions | 2.1.0 | Partially fixed |
| patrickhener goshs | = < 2.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| goshs.de/goshs/v2(Go) | < 2.1.0 | 2.1.0 |
| goshs.de/goshs/v2(Go) | All versions | No fix listed |
| patrickhener goshs | = < 2.1.0 | No fix listed |
| goshs.de/goshs/v2(Go) | <= 2.0.9 | No fix listed |
References
- github.com vendor-advisory
- github.com product
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-3whc-qvhv-xqjp
- github.com
- ENISA EUVD EUVD-2026-60948 third-party-advisory