CVE-2025-46816
CRITICAL 9.4CVSS 3.0goshs route not protected, allows command execution
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.
- Published
- 6 May 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-284CWE-77
- Also known as
- GHSA-rwj2-w85g-5cmmGO-2025-3672
- Sources
- NVDJSONOSV GHSA-rwj2-w85g-5cmmJSONOSV GO-2025-3672JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.0 | CRITICAL 9.4 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.4 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/patrickhener/goshs | >= 0.3.4, < 1.0.5 | 1.0.5 |
References
- https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa · WEB, FIX
- https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-46816 · ADVISORY
- https://github.com/patrickhener/goshs · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 6 May 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 May 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 May 2025)