Public mode

No access to your tenant or devices. Every item links to its source. What this means

Some sources, documents or advisories need attention: 275/275 feeds/APIs · 469/469 docs · 8/9 advisories · checked 21:27 UTC Customize Public modeDiscuss ChangeIntel on Discord

goshs has a file-based ACL authorization bypass in goshs state-changing routes

Collected exploitation and prediction evidence

Risk source coverage

CISA KEV is observed exploitation evidence. FIRST EPSS is a dated prediction of exploitation in the next 30 days. Missing scores are unknown. This collector requests predictions only for explicit CVE aliases in the public NuGet archive; Microsoft release views retain their existing prediction scope.

No collected risk observation for these identifiers. This does not establish absence of exploitation or a zero probability.

cve-program · CVE-2026-40189

Published

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.

Source published
10 Apr 2026 19:44:54 UTC
Source modified
13 Apr 2026 20:53:02 UTC
Observed here
23 Oct 2026 15:48:27 UTC
Source terms
CVE Program Terms of Use

Original source record · Cite this exact observation · Complete original publisher JSON

This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: cve-program · CVE Program Terms of Use. Source text is retained; field grouping and change labels are provided by ChangeIntel.

CVSS 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

euvd · EUVD-2026-21591

Published

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.

EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.

Original publisher date fields

datePublished: Apr 10, 2026, 7:44:54 PM

dateUpdated: Apr 13, 2026, 8:53:02 PM

1 related source bulletins · separate from aliases

openSUSE-SU-2026:10542-1: goshs-2.0.0-1.1 on GA media

CVE-2026-35392 · CVE-2026-35393 · CVE-2026-35471 · CVE-2026-40188 · CVE-2026-40189

Source published
Apr 10, 2026, 7:44:54 PM (timezone not stated)
Source modified
Apr 13, 2026, 8:53:02 PM (timezone not stated)
Observed here
1 Nov 2026 06:15:36 UTC
Source terms
ENISA EUVD · source terms and attribution apply

Original source record · Cite this exact observation · Complete original publisher JSON

This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: euvd · ENISA EUVD · source terms and attribution apply. Source text is retained; field grouping and change labels are provided by ChangeIntel.

EUVD CVSS 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

nvd · CVE-2026-40189

Published

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.

NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.

Source analysis status: Analyzed

Weakness classifications: CWE-862

Original publisher date fields

published: 2026-04-10T20:16:23.890

lastModified: 2026-10-26T22:10:00.163

4 source CPE criteria · context only
  • cpe:2.3:a:goshs:goshs:*:*:*:*:*:go:*:*
  • cpe:2.3:a:goshs:goshs:2.0.0:beta1:*:*:*:go:*:*
  • cpe:2.3:a:goshs:goshs:2.0.0:beta2:*:*:*:go:*:*
  • cpe:2.3:a:goshs:goshs:2.0.0:beta3:*:*:*:go:*:*

The original JSON retains the logical configuration operators, exclusions and version bounds.

Source published
10 Apr 2026 20:16:23 UTC
Source modified
26 Oct 2026 22:10:00 UTC
Observed here
27 Oct 2026 10:09:56 UTC
Source terms
NIST NVD usage terms; underlying source attribution retained

Original source record · Cite this exact observation · Complete original publisher JSON

This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: nvd · NIST NVD usage terms; underlying source attribution retained. Source text is retained; field grouping and change labels are provided by ChangeIntel.

CVSS 4.0 · [email protected] · Secondary · 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

CVSS 3.1 · [email protected] · Primary · 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

osv · GHSA-wvhv-qcqf-f3cx

Published

### Summary 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. ### Details The project README explicitly documents file-based ACLs as a security feature: - `README.md:59` - "You can place a .goshs in any folder to apply custom ACLs" - `README.md:61` - "You can apply custom basic auth per folder" The read/list path correctly enforces `.goshs`: - `httpserver/filebased.go:10-49` loads `.goshs` - `httpserver/handler.go:68-91` calls `findSpecialFile()` for directories - `httpserver/handler.go:94-101` calls `findSpecialFile()` for files - `httpserver/handler.go:285-305` applies custom auth - `httpserver/handler.go:545-565` enforces folder auth during directory rendering - `httpserver/handler.go:590-630` enforces file auth and blocked entries during file serving However, the state-changing routes bypass this logic entirely: - `httpserver/server.go:94-100` routes multipart `POST /.../upload` directly to `upload()` - `httpserver/server.go:105-109` routes `PUT` directly to `put()` - `httpserver/handler.go:119-123` dispatches `?mkdir` directly to `handleMkdir()` - `httpserver/handler.go:181-187` dispatches `?delete` directly to `deleteFile()` - `httpserver/updown.go:18-60` writes files for `PUT` without checking `.goshs` - `httpserver/updown.go:63-165` writes files for multipart upload without checking `.goshs` - `httpserver/handler.go:679-698` deletes files with `os.RemoveAll()` without checking `.goshs` - `httpserver/handler.go:901-937` creates directories with `os.MkdirAll()` without checking `.goshs` This is not a path traversal issue. The path remains inside the configured root after sanitization. The vulnerability is that authorization is applied inconsistently: reads are protected, but writes and deletes are not. Because `.goshs` itself can be deleted through the unauthenticated delete route, the attacker can escalate the impact from unauthorized modification to full removal of the folder's auth barrier. ### PoC Environment used for verification: - Repository/module: `github.com/patrickhener/goshs` - Verified vulnerable tag: `v2.0.0-beta.3` - Also present in the `v1.1.4` line based on code inspection - Local host: `127.0.0.1:18091` Build and setup: ```bash cd '/Users/r1zzg0d/Documents/CVE hunting/targets/goshs_beta3' go build -o /tmp/goshs_acl_verify/goshs ./ rm -rf /tmp/goshs_acl_verify/root mkdir -p /tmp/goshs_acl_verify/root/protected cp integration/keepFiles/goshsACLAuth /tmp/goshs_acl_verify/root/protected/.goshs printf 'top secret\n' > /tmp/goshs_acl_verify/root/protected/secret.txt /tmp/goshs_acl_verify/goshs -d /tmp/goshs_acl_verify/root -p 18091 ``` In a second terminal: ```bash # The protected folder initially requires auth curl -s -o /dev/null -w '%{http_code}\n' 'http://127.0.0.1:18091/protected/' # Unauthenticated write into the protected folder succeeds curl -s -o /dev/null -w '%{http_code}\n' -X PUT \ --data-binary 'injected via PUT' \ 'http://127.0.0.1:18091/protected/put-created.txt' # Unauthenticated deletion of the ACL file succeeds curl -s -o /dev/null -w '%{http_code}\n' \ 'http://127.0.0.1:18091/protected/.goshs?delete' # The previously protected file is now publicly accessible curl -s -o /dev/null -w '%{http_code}\n' \ 'http://127.0.0.1:18091/protected/secret.txt' curl -s 'http://127.0.0.1:18091/protected/secret.txt' ``` Expected results: ```text 401 200 200 200 top secret ``` <img width="1280" height="657" alt="goshs_poc1" src="https://github.com/user-attachments/assets/37576067-fa90-44f6-8fe5-dcb7c96b9704" /> Note: if using `zsh`, the URL containing `?delete` must be quoted, or the shell will treat `?` as a wildcard and the request will not be sent. PoC Video for reference: https://github.com/user-attachments/assets/deb9106e-6dfa-47c0-95c1-993c2cbc9ee7 ### Impact This is an authorization bypass affecting deployments that rely on `.goshs` for per-folder protection. A remote unauthenticated attacker can: - create or overwrite files inside a folder that should require authentication - create directories inside the protected folder - delete arbitrary files reachable through the vulnerable route inside that protected folder - delete the `.goshs` policy file itself - read previously protected files once the policy file has been removed In practice, this breaks the security boundary promised by the file-based ACL feature and can expose sensitive files while also allowing unauthorized modification or destruction of protected content. ### Remediation 1. Enforce `.goshs` authorization checks for all state-changing operations, not just read/list flows. Before `PUT`, multipart upload, delete, and mkdir, resolve the effective folder ACL and deny the request unless the caller satisfies `acl.Auth`. 2. Protect `.goshs` as a special file in mutation handlers. The application already prevents serving `.goshs`; it should also reject deletion, overwrite, or replacement of `.goshs` through HTTP routes unless the request is properly authorized. 3. Add regression tests covering protected folders for every mutation path. The test suite should verify that `PUT`, `POST /upload`, `?delete`, and `?mkdir` all fail without valid credentials when a `.goshs` file is present.

Source published
10 Apr 2026 20:00:32 UTC
Source modified
25 Jun 2026 23:11:44 UTC
Observed here
24 Oct 2026 13:19:41 UTC
Source terms
GitHub Advisory Database · CC-BY-4.0

Original source record · Cite this exact observation · Complete original publisher JSON

This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: osv · GitHub Advisory Database · CC-BY-4.0. Source text is retained; field grouping and change labels are provided by ChangeIntel.

CVSS_V3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS_V4 · 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 rating · CRITICAL

osv · GO-2026-5728

Published

goshs has a file-based ACL authorization bypass in goshs state-changing routes in github.com/patrickhener/goshs

Source published
25 Jun 2026 22:34:38 UTC
Source modified
25 Jun 2026 23:01:40 UTC
Observed here
24 Oct 2026 13:19:41 UTC
Source terms
OSV · upstream source license applies

Original source record · Cite this exact observation · Complete original publisher JSON

This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: osv · OSV · upstream source license applies. Source text is retained; field grouping and change labels are provided by ChangeIntel.

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 1 Nov 21:27 UTC · 275 of 275 readable · 272 fully read · documentation 469/469 current