CVE-2026-40189 json
goshs has a file-based ACL authorization bypass in goshs state-changing routes
published 2026-04-10 6 mo ago modified 2026-10-26 13 d ago also GHSA-wvhv-qcqf-f3cx , GO-2026-5728 , EUVD-2026-21591
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 52%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- goshs goshs 2.0.0
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
- goshs openSUSE Tumbleweed 2.0.0-1.1
opensuse advisories openSUSE-SU-2026:21483-1openSUSE-SU-2026:10542-1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 6 mo ago
Exploit prediction
0.67% chance of exploitation in the next 30 days, higher than 52% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/patrickhener/goshs/security/advisories/GHSA-wvhv-qcqf-f3cx referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.3 | 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 |
| CNA | 4.0 | 9.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/patrickhener/goshs | <=1.1.4 all versions |
no fix listed |
Affected products
- patrickhener goshs
Classification
- Weakness
-
- CWE-862 Missing Authorization
References
-
github.com
/patrickhener/goshs/commit/f212c4f4a126556bab008f79758e21a839ef2c0f
web, patch
-
github.com
/patrickhener/goshs/security/advisories/GHSA-wvhv-qcqf-f3cx
exploit, web, mitigation, vendor-advisory, advisory
-
github.com
/patrickhener/goshs/releases/tag/v2.0.0-beta.4
web, product, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-40189
advisory
-
github.com
/patrickhener/goshs
package
Sources
- CVE List CVE-2026-40189
- GitHub Advisory GHSA-wvhv-qcqf-f3cx
- NVD CVE-2026-40189
- OSV GO-2026-5728
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.