CVE-2026-50138: CWE-284: Improper Access Control in patrickhener goshs
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.
AI Analysis
Technical Summary
In goshs, a SimpleHTTPServer written in Go, versions before 2.1.0 have a security flaw where the WebDAV listener ignores the mode-restriction flags --read-only, --upload-only, and --no-delete. While these flags are enforced on the primary HTTP port, the WebDAV port directly uses golang.org/x/net/webdav.Handler without equivalent access control. As a result, an authenticated WebDAV client can perform unauthorized operations such as PUT, DELETE, MKCOL, MOVE, and COPY, contrary to the operator's intended restrictions. This vulnerability is tracked as CVE-2026-50138 and is addressed in goshs version 2.1.0.
Potential Impact
Authenticated users can bypass intended access restrictions on the WebDAV interface, allowing them to create, modify, move, or delete files and directories despite mode flags that should limit these actions. This leads to unauthorized modification of server content, potentially compromising data integrity and confidentiality. The CVSS score of 8.1 reflects a high severity impact with network attack vector, low attack complexity, and no user interaction required.
Mitigation Recommendations
Upgrade goshs to version 2.1.0 or later, where this issue is patched. Prior to upgrading, restrict access to the WebDAV port to trusted users only, as the vulnerability requires authentication. No other official mitigations are documented.
CVE-2026-50138: CWE-284: Improper Access Control in patrickhener goshs
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.
CVSS v3.1
Score 8.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In goshs, a SimpleHTTPServer written in Go, versions before 2.1.0 have a security flaw where the WebDAV listener ignores the mode-restriction flags --read-only, --upload-only, and --no-delete. While these flags are enforced on the primary HTTP port, the WebDAV port directly uses golang.org/x/net/webdav.Handler without equivalent access control. As a result, an authenticated WebDAV client can perform unauthorized operations such as PUT, DELETE, MKCOL, MOVE, and COPY, contrary to the operator's intended restrictions. This vulnerability is tracked as CVE-2026-50138 and is addressed in goshs version 2.1.0.
Potential Impact
Authenticated users can bypass intended access restrictions on the WebDAV interface, allowing them to create, modify, move, or delete files and directories despite mode flags that should limit these actions. This leads to unauthorized modification of server content, potentially compromising data integrity and confidentiality. The CVSS score of 8.1 reflects a high severity impact with network attack vector, low attack complexity, and no user interaction required.
Mitigation Recommendations
Upgrade goshs to version 2.1.0 or later, where this issue is patched. Prior to upgrading, restrict access to the WebDAV port to trusted users only, as the vulnerability requires authentication. No other official mitigations are documented.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-3whc-qvhv-xqjp
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-50138"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a45998227e9c797194186d8
Added to database: 07/01/2026, 22:49:38 UTC
Last enriched: 08/19/2026, 11:16:50 UTC
Last updated: 09/11/2026, 17:29:21 UTC
Views: 150
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.