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.
Published: 2026-08-18
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

goshs is a lightweight HTTP server written in Go. A flaw exists in versions before 2.1.0 when the WebDAV feature is enabled. The command‑line options intended to restrict file operations (--read-only, --upload-only, --no-delete) are applied only to the primary HTTP port; the dedicated WebDAV port bypasses these safeguards. Consequently, an authenticated WebDAV client can add, modify, or delete files, create directories, and move or copy resources on the server, effectively compromising the server’s file integrity and potentially enabling malicious code deployment. This weakness aligns with the Authorization class of vulnerabilities (CWE‑284).

Affected Systems

The vulnerable product is patrickhener’s goshs SimpleHTTPServer. Any installation of goshs prior to version 2.1.0 that operates WebDAV (enabled with the -w flag) is affected. Users running earlier releases should review their deployment to determine whether WebDAV is active and whether the restrictive flags were specified.

Risk and Exploitability

The CVSS score of 8.1 indicates high severity, while the EPSS score is not available. The vulnerability is not listed in CISA’s KEV catalog. An attacker must first authenticate to the WebDAV service, which is the inferred attack vector. Once authenticated, the attacker can perform unrestricted file operations on the server, potentially leading to remote code execution if the application serves uploaded files or to significant service disruption. The lack of public exploitation data does not reduce the seriousness of an attacker who could target the WebDAV interface for destructive or disruptive actions.

Generated by OpenCVE AI on August 18, 2026 at 16:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to goshs version 2.1.0 or later to apply the official patch that enforces mode-restriction flags on all interfaces.
  • If an upgrade is not immediately possible, disable or remove the WebDAV feature or block the WebDAV port at the firewall to prevent authenticated clients from connecting.
  • Enforce strict access controls on the remaining WebDAV interface, ensuring that only trusted users have authentication rights and that file permissions are tightly managed.

Generated by OpenCVE AI on August 18, 2026 at 16:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-3whc-qvhv-xqjp goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags
History

Thu, 20 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 18 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
First Time appeared Patrickhener
Patrickhener goshs
Vendors & Products Patrickhener
Patrickhener goshs

Tue, 18 Aug 2026 15:15:00 +0000

Type Values Removed Values Added
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.
Title goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags
Weaknesses CWE-284
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}


Subscriptions

Patrickhener Goshs
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-19T14:30:24.965Z

Reserved: 2026-06-03T18:49:32.275Z

Link: CVE-2026-50138

cve-icon Vulnrichment

Updated: 2026-08-19T14:30:09.464Z

cve-icon NVD

Status : Received

Published: 2026-08-18T15:16:54.580

Modified: 2026-08-19T15:17:07.620

Link: CVE-2026-50138

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T17:45:06Z

Weaknesses