Skip to content
OpenAdvisories
High · 8.1 CVE-2026-50138 EUVD-2026-60948GHSA-3whc-qvhv-xqjpGO-2026-5878

goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags

Published Aug 18, 2026 · Updated Aug 19, 2026 · Assigned by 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.

Affected products

VendorProductAffectedFixed
patrickhener goshs < 2.1.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go goshs.de/goshs all versions — GO-2026-5878
Go goshs.de/goshs/v2 < 2.1.0 2.1.0 GHSA-3whc-qvhv-xqjp

Advisories 1

References