{"id":"CVE-2026-50138","revision":"f9191ce273fb4e0e94a51bf679e7c8e8","records":[{"revision":"f9191ce273fb4e0e94a51bf679e7c8e8","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-50138","aliases":[],"title":"goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags","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.","state":0,"publishedAt":"2026-08-18T14:59:43.416+00:00","modifiedAt":"2026-08-19T14:30:24.965+00:00","affected":[{"ecosystem":"Vendor product","name":"goshs","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"patrickhener\",\n                    \"product\": \"goshs\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.1.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"severity":"HIGH"}],"references":["https://github.com/goshs-labs/goshs/security/advisories/GHSA-3whc-qvhv-xqjp"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-50138","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-50138","identifiers":["CVE-2026-50138"]},"retained":false,"historicalAffected":[]}],"coverage":[]}