{"id":"CVE-2026-50138","state":"PUBLISHED","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.","publishedAt":"2026-08-18T14:59:43.416Z","updatedAt":"2026-08-19T14:30:24.965Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["patrickhener goshs"],"affected":[{"vendor":"patrickhener","product":"goshs","versions":[{"version":"< 2.1.0","status":"affected"}]}],"references":["https://github.com/goshs-labs/goshs/security/advisories/GHSA-3whc-qvhv-xqjp"],"weaknesses":["CWE-284"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/50xxx/CVE-2026-50138.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-50138","state":"PUBLISHED","datePublished":"2026-08-18T14:59:43.416Z","dateUpdated":"2026-08-19T14:30:24.965Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-03T18:49:32.275Z"},"containers":{"cna":{"title":"goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags","descriptions":[{"lang":"en","value":"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":[{"vendor":"patrickhener","product":"goshs","versions":[{"version":"< 2.1.0","status":"affected"}]}],"references":[{"url":"https://github.com/goshs-labs/goshs/security/advisories/GHSA-3whc-qvhv-xqjp","name":"https://github.com/goshs-labs/goshs/security/advisories/GHSA-3whc-qvhv-xqjp","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-284","lang":"en","description":"CWE-284: Improper Access Control","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-18T14:59:43.416Z"},"source":{"advisory":"GHSA-3whc-qvhv-xqjp","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/goshs-labs/goshs/security/advisories/GHSA-3whc-qvhv-xqjp"}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-19T14:29:52.649598Z","id":"CVE-2026-50138","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-19T14:30:24.965Z"}}]}}}