{"id":"CVE-2026-50138","published":"2026-08-18T14:59:43Z","modified":"2026-08-19T14:30:24Z","title":"goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags","vendor":"patrickhener","product":"goshs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0038,"percentile":0.32888,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://github.com/goshs-labs/goshs/security/advisories/GHSA-3whc-qvhv-xqjp","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.2,"factors":[{"name":"EPSS percentile","points":6.58},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"patrickhener","affectedVersions":[{"vendor":"patrickhener","product":"goshs","versions":["< 2.1.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-19T14:29:52.649598Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"goshs.de/goshs/v2","vulnerableRanges":["<2.1.0"],"patched":["2.1.0"],"from":["GHSA-3whc-qvhv-xqjp","GO-2026-5878"],"provenance":"source"},{"ecosystem":"Go","package":"goshs.de/goshs","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5878"],"provenance":"source"}],"summary":{"text":"The goshs server's WebDAV listener, enabled with the -w flag, does not enforce the --read-only, --upload-only, and --no-delete restrictions that apply to its primary HTTP port, so those operator-set modes are silently bypassed on WebDAV. An attacker with network access to the WebDAV port who has valid credentials for it can perform PUT, DELETE, MKCOL, MOVE, and COPY operations despite the restrictions the operator intended.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:30Z"},"euvd":{"id":"EUVD-2026-60948","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-42091","published":"2026-05-04","fixed":"2.0.2","kev":false,"link":{"from":"CVE-2026-42091","to":"CVE-2026-50138","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:goshs.de/goshs/v2","fromFixed":"2.0.2","toFixed":"2.1.0","daysApart":106}]}},{"cve":"CVE-2026-50138","published":"2026-08-18","fixed":"2.1.0","kev":false},{"cve":"CVE-2026-50139","published":"2026-08-18","fixed":"2.1.0","kev":false},{"cve":"CVE-2026-54719","published":"2026-07-28","fixed":"2.1.1","kev":false},{"cve":"CVE-2026-62325","published":"2026-07-28","fixed":"2.1.4","kev":false}],"package":"Go:goshs.de/goshs/v2"}}