CVE-2026-50138
published high CVSS 3.1 · 8.1goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| patrickhener | — | goshs< 2.1.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| patrickhener | goshs | < 2.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-284 CWE-284: Improper Access Control
References
1Provider assertions
2GitHub_M · cna
goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4a18eafec0bd1ba18b1087d71d3dd18fc617fe2d20cea42d9f8bf216569a3c43
- Ingested
- 23 Sep 2026, 09:18:37 UTC
- Source record
- Official CVE record