Vulnerability · Published Aug 18, 2026 · Assigned by GitHub_M

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

High 8.1

In plain English

A high-severity improper access control in goshs from patrickhener. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)0.4%top 67.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogoshs.de/goshsno fix listedGO-2026-5878
Gogoshs.de/goshs/v22.1.0GHSA-3whc-qvhv-xqjp
Gogoshs.de/goshs/v22.1.0GO-2026-5878

Affected products (as reported)

VendorProductVersions
patrickhener goshs < 2.1.0

Weakness: CWE-284 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

References