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

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-07-01T21:56:40.000Z
- Modified: 2026-10-22T22:10:00.250Z
- Also known as: GHSA-3whc-qvhv-xqjp, GO-2026-5878
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- patrickhener goshs: < 2.1.0
- goshs.de/goshs/v2 (Go): before 2.1.0
- goshs.de/goshs (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/goshs-labs/goshs/security/advisories/GHSA-3whc-qvhv-xqjp>
- <https://github.com/patrickhener/goshs/security/advisories/GHSA-3whc-qvhv-xqjp> (advisory, web)
- <https://github.com/patrickhener/goshs> (package)

## Sources

- CVE List: [CVE-2026-50138](https://www.cve.org/CVERecord?id=CVE-2026-50138), CVE Terms of Use, modified 2026-08-19
- GitHub Advisory Database: [GHSA-3whc-qvhv-xqjp](https://github.com/advisories/GHSA-3whc-qvhv-xqjp), CC-BY-4.0, modified 2026-07-07
- Go Vulnerability Database: [GO-2026-5878](https://pkg.go.dev/vuln/GO-2026-5878), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-50138](https://nvd.nist.gov/vuln/detail/CVE-2026-50138), Public domain, modified 2026-10-22

---

Page: https://cve.day/CVE-2026-50138 · Whole record: https://cve.day/CVE-2026-50138.json · Rebuilt by cve.day 2026-11-25T22:59:33.472Z
