Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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