CVE-2025-46816
goshs route not protected, allows command execution
Reported by github_m · Published May 6, 2025
github.com/patrickhener/goshs is fixed in 1.0.5 (Go Modules)
goshs is a SimpleHTTPServer written in Go. Starting in version 0.3.4 and prior to version 1.0.5, running goshs without arguments makes it possible for anyone to execute commands on the server. The function `dispatchReadPump` does not checks the option cli `-c`, thus allowing anyone to execute arbitrary command through the use of websockets. Version 1.0.5 fixes the issue.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/patrickhener/goshs | Go Modules | 1.0.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| patrickhener | goshs | >= 0.3.4, < 1.0.5 |
| patrickhener | goshs | 0.3.4 |
| github.com | patrickhener/goshs | 0.3.4 |
Timeline
- May 6, 2025 CVE Published
- May 6, 2025 Coalition ESS Score (11 in total, the first dated here)
- May 6, 2025 PoC Published (3 in total, the first dated here)
- May 6, 2025 CVE Updated
- May 7, 2025 EPSS Score (30 in total, the first dated here)
- Dec 13, 2025 Security Advisory (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-46816
vulnetix vdb fixes CVE-2025-46816
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-46816/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm x_refsource_CONFIRM
- https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-46816 advisory
- https://github.com/advisories/GHSA-rwj2-w85g-5cmm advisory
- https://github.com/patrickhener/goshs url