CVE-2025-46816 goshs route not protected, allows command execution
CriticalCVSS 9.4
EPSS 0.75%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| patrickhener goshs(Go) | >= 0.3.4, < 1.0.5; >= 0.3.4, <= 1.0.4 | 1.0.5 | Fixed |
| patrickhener goshs | = >= 0.3.4, < 1.0.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| patrickhener goshs(Go) | >= 0.3.4, < 1.0.5 | 1.0.5 |
| patrickhener goshs(Go) | >= 0.3.4, <= 1.0.4 | No fix listed |
| patrickhener goshs | = >= 0.3.4, < 1.0.5 | No fix listed |
References
- https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa patch
- github.com product
- github.com