CVE-2026-40189
published critical CVSS 4.0 · 9.3goshs has a file-based ACL authorization bypass in goshs state-changing routes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| patrickhener | — | goshs< 2.0.0-beta.4 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | goshsaarch64 | Advisory build | 2.0.0-1.1 | OPENSUSE-SU-2026:10542-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | goshsppc64le | Advisory build | 2.0.0-1.1 | OPENSUSE-SU-2026:10542-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | goshss390x | Advisory build | 2.0.0-1.1 | OPENSUSE-SU-2026:10542-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | goshsx86_64 | Advisory build | 2.0.0-1.1 | OPENSUSE-SU-2026:10542-1 |
Description
goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.4, goshs enforces the documented per-folder .goshs ACL/basic-auth mechanism for directory listings and file reads, but it does not enforce the same authorization checks for state-changing routes. An unauthenticated attacker can upload files with PUT, upload files with multipart POST /upload, create directories with ?mkdir, and delete files with ?delete inside a .goshs-protected directory. By deleting the .goshs file itself, the attacker can remove the folder's auth policy and then access previously protected content without credentials. This results in a critical authorization bypass affecting confidentiality, integrity, and availability. This vulnerability is fixed in 2.0.0-beta.4.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| patrickhener | goshs | < 2.0.0-beta.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-862 CWE-862: Missing Authorization
References
3Provider assertions
2GitHub_M · cna
goshs has a file-based ACL authorization bypass in goshs state-changing routes
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5855f39eb201b1c81b462752eb0191d480d71d07778db473f56454171ea77618
- Ingested
- 23 Sep 2026, 09:13:02 UTC
- Source record
- Official CVE record