What’s Vulnerable › Vulnerabilities
CVE-2025-46816: goshs route not protected, allows command execution
- Severity: critical (CVSS 9.4 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-05-06 · updated 2026-06-17
- Weakness: CWE-77
Description
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.
Affected products
- patrickhener goshs: from 0.3.4, < 1.0.5
References
- https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa
- https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm
Get alerted when CVE-2025-46816 or the next vulnerability affects your stack