goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-284.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| patrickhener | goshs | before 2.1.0 | 2.1.0 | Patch available | CNA |
| — | goshs.de/goshs/v2 (Go) | before 2.1.0 | 2.1.0 | Patch available | GHSA-3whc-qvhv-xqjp |
- goshs Vendorpatrickhener Affected before 2.1.0 Fixed in 2.1.0 Patch available CNA
- goshs.de/goshs/v2 (Go) Vendor— Affected before 2.1.0 Fixed in 2.1.0 Patch available GHSA-3whc-qvhv-xqjp
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:goshs:goshs:*:*:*:*:*:*:*:* | — | — | patrickhener |
- cpe:2.3:a:goshs:goshs:*:*:*:*:*:*:*:* Versions — — ·patrickhener
Remediation
- Fix · CNA goshs (patrickhener) Fixed in 2.1.0
- Fix · GHSA-3whc-qvhv-xqjp goshs.de/goshs/v2 (Go) Fixed in 2.1.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-50138
- 2026-10-03 Alias added: GHSA-3whc-qvhv-xqjp
References
More patrickhener vulnerabilities
- TI-2026-29540 goshs: Empty-username SFTP password authentication bypass in goshs CVSS 3.1CRITICAL 9.8
- TI-2026-27601 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs CVSS 3.0CRITICAL 9.8
- TI-2026-27529 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs POST multipart upload CVSS 3.0CRITICAL 9.8
- TI-2026-27528 goshs has an Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs PUT Upload CVSS 3.0CRITICAL 9.8
- TI-2025-29449 goshs route not protected, allows command execution CVSS 3.0CRITICAL 9.4
- TI-2026-29003 goshs has a file-based ACL authorization bypass in goshs state-changing routes CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-50138 · CVE Program
- CVE-2026-50138 · NVD
- FIRST EPSS
- GHSA-3whc-qvhv-xqjp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences