CVE-2025-46816
goshs 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
9.4
goshs 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.
- Record
CVE-2025-46816- CVSS 3.0
- 9.4 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L - Weakness
- CWE-284, CWE-77
- Updated
- 2026-11-02
EUVDEUVD-2025-13620
9.4
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.
- Record
EUVD-2025-13620- CVSS 3.0
- 9.4 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-rwj2-w85g-5cmm
9.4
goshs route not protected, allows command execution
Summary
It seems that when running goshs without arguments it is possible for anyone to execute commands on the server. This was tested on version 1.0.4 of goshs. The command function was introduced in version 0.3.4.
Details
It seems that the function dispatchReadPump does not checks the option cli -c, thus allowing anyone to execute arbitrary command through the use of websockets.
PoC
Used websocat for the POC:
echo -e '{"type": "command", "content": "id"}' |./websocat 'ws://192.168.1.11:8000/?ws' -t
Impact
The vulnerability will only impacts goshs server on vulnerable versions.
- Record
GHSA-rwj2-w85g-5cmm- CVSS 3.0
- 9.4 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L - Weakness
- CWE-77, CWE-284
- Updated
- 2026-11-02
NVD
9.4
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.
- Record
CVE-2025-46816- CVSS 3.0
- 9.4 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L - Weakness
- CWE-77, CWE-284
- Updated
- 2026-11-02
OSV
9.4
goshs 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.
- Record
CVE-2025-46816- CVSS 3.0
- 9.4 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L - Weakness
- CWE-284, CWE-77
- Updated
- 2026-11-02
OSVGHSA-rwj2-w85g-5cmm
9.4
goshs route not protected, allows command execution
Summary
It seems that when running goshs without arguments it is possible for anyone to execute commands on the server. This was tested on version 1.0.4 of goshs. The command function was introduced in version 0.3.4.
Details
It seems that the function dispatchReadPump does not checks the option cli -c, thus allowing anyone to execute arbitrary command through the use of websockets.
PoC
Used websocat for the POC:
echo -e '{"type": "command", "content": "id"}' |./websocat 'ws://192.168.1.11:8000/?ws' -t
Impact
The vulnerability will only impacts goshs server on vulnerable versions.
- Record
GHSA-rwj2-w85g-5cmm- CVSS 3.0
- 9.4 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L - Weakness
- CWE-284, CWE-77
- Updated
- 2026-11-02
OSVGO-2025-3672 No score
goshs route not protected, allows command execution in github.com/patrickhener/goshs
goshs route not protected, allows command execution in github.com/patrickhener/goshs
- Record
GO-2025-3672- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15135-1 No score
govulncheck-vulndb-0.0.20250515T200012-1.1 on GA media
These are all security issues fixed in the govulncheck-vulndb-0.0.20250515T200012-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15135-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/patrickhener/goshsGo |
0.3.4 to 1.0.4 | 1.0.5 |
github.com/patrickhener/goshsGo |
0.3.4 up to 1.0.5 | 1.0.5 |
govulncheck-vulndbopenSUSE:Tumbleweed From an advisory covering 11 CVEs |
before 0.0.20250515T200012-1.1 | 0.0.20250515T200012-1.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | Guilhem7/CVE-2025-46816 | 2025-06-04 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-46816 is a critical vulnerability (CVSS 9.4) in Patrickhener Goshs, published May 6, 2025. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.75%, the 55th percentile. Fixed in github.com/patrickhener/goshs 1.0.5.
References
github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm
github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa
nvd.nist.gov/vuln/detail/CVE-2025-46816
github.com/advisories/GHSA-rwj2-w85g-5cmm
github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46816.json
github.com/patrickhener/goshs
Show 12 moreShow less
lists.opensuse.org/archives/list/[email protected]/thread/QOPKRPL75SZMLT3YSQAZEDWH7RBRXGJK
suse.com/security/cve/CVE-2024-52290
suse.com/security/cve/CVE-2024-8063
suse.com/security/cve/CVE-2025-3757
suse.com/security/cve/CVE-2025-3931
suse.com/security/cve/CVE-2025-4432
suse.com/security/cve/CVE-2025-46331
suse.com/security/cve/CVE-2025-4658
suse.com/security/cve/CVE-2025-46721
suse.com/security/cve/CVE-2025-46735
suse.com/security/cve/CVE-2025-46815
suse.com/security/cve/CVE-2025-46816