CVE-2025-46816
goshs is a SimpleHTTPServer written in Go. Starting in version …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa
- github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm
- nvd.nist.gov/vuln/detail/CVE-2025-46816
- github.com/advisories/GHSA-rwj2-w85g-5cmm
- nvd.nist.gov/vuln/detail/CVE-2025-46816
- cve.org/CVERecord?id=CVE-2025-46816
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.