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.
Severity (CVSS)
| Base score | 8.1 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| Provided by | CNA |
Weaknesses
- CWE-284 — CWE-284: Improper Access Control
Affected products
| Vendor | Product | Versions |
|---|---|---|
| patrickhener | goshs | < 2.1.0 |
References
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-3whc-qvhv-xqjp (x_refsource_CONFIRM)
Generated from the official CVE List on 19 Aug 2026 07:05 UTC.