{"id":"CVE-2026-40189","published":"2026-04-10T19:44:54Z","modified":"2026-04-13T20:53:02Z","title":"goshs has a file-based ACL authorization bypass in goshs state-changing routes","vendor":"patrickhener","product":"goshs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00668,"percentile":0.52855,"provenance":"source"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/patrickhener/goshs/security/advisories/GHSA-wvhv-qcqf-f3cx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/patrickhener/goshs/commit/f212c4f4a126556bab008f79758e21a839ef2c0f","tags":["x_refsource_MISC"]},{"url":"https://github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4","tags":["x_refsource_MISC"]}],"priority":{"score":17.1,"factors":[{"name":"EPSS percentile","points":10.57},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"patrickhener","affectedVersions":[{"vendor":"patrickhener","product":"goshs","versions":["< 2.0.0-beta.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-04-13T20:52:58.640099Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/patrickhener/goshs","vulnerableRanges":["<=1.1.4","all versions"],"patched":[],"from":["GHSA-wvhv-qcqf-f3cx","GO-2026-5728"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-21591","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-patrickhener-goshs-cve-2026-35471","parents":[{"from":"CVE-2026-35471","to":"CVE-2026-40189","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["httpserver/handler.go","httpserver/updown.go"],"commits":["https://github.com/patrickhener/goshs/commit/237f3af891a90df9b903b85f1cd3438040ca261a","https://github.com/patrickhener/goshs/commit/f212c4f4a126556bab008f79758e21a839ef2c0f"],"basis":"shared function","functions":["handleMkdir","put","upload"]}]}],"children":[{"from":"CVE-2026-40189","to":"CVE-2026-54719","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This vulnerability exists due to an incomplete fix for CVE-2026-40189.","from":"CVE.org","in":"CVE-2026-54719"}]},{"from":"CVE-2026-40189","to":"CVE-2026-42091","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["httpserver/handler.go","httpserver/updown.go"],"commits":["https://github.com/patrickhener/goshs/commit/f212c4f4a126556bab008f79758e21a839ef2c0f","https://github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32"],"basis":"rarely changed file"}]}]}}