CVE-2025-46816patrickhener goshs
Critical 9.4 No auth needed
Follow: this CVE · patrickhener · patrickhener goshs We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 3.0
- 9.4
- EPSS
- —
- Auth required
- No
- Published
- May 6, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
What happens
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.
What to do
- Apply the vendor's security update for goshs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/patrickhener/goshs |
≥ 0.3.4 < 1.0.5 |
1.0.5 |
go get github.com/patrickhener/goshs@v1.0.5 |
| Go | github.com/patrickhener/goshs |
≥ 0.3.4 < 1.0.5 |
1.0.5 |
go get github.com/patrickhener/goshs@v1.0.5 |
Per OSV / GitHub Advisories (GHSA-rwj2-w85g-5cmm, GO-2025-3672). Check the version in your lockfile before upgrading.
Affected products
- patrickhener · goshs
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.