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

- Severity: Critical 9.4 (CVSS:3.0, scored by GitHub_M) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2025-05-06T16:45:17.000Z
- Modified: 2026-06-17T09:26:58.900Z
- Also known as: GHSA-rwj2-w85g-5cmm, GO-2025-3672
- Weaknesses: CWE-77, CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- patrickhener goshs: >= 0.3.4, < 1.0.5
- github.com/patrickhener/goshs (Go): from 0.3.4 before 1.0.5

## Every score

- GitHub_M: 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`
- GitHub: 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`

## References

- <https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm> (advisory, web)
- <https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa> (fix, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46816> (advisory)
- <https://github.com/patrickhener/goshs> (package)

## Sources

- CVE List: [CVE-2025-46816](https://www.cve.org/CVERecord?id=CVE-2025-46816), CVE Terms of Use, modified 2025-05-06
- GitHub Advisory Database: [GHSA-rwj2-w85g-5cmm](https://github.com/advisories/GHSA-rwj2-w85g-5cmm), CC-BY-4.0, modified 2025-05-15
- Go Vulnerability Database: [GO-2025-3672](https://pkg.go.dev/vuln/GO-2025-3672), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-46816](https://nvd.nist.gov/vuln/detail/CVE-2025-46816), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-46816 · Whole record: https://cve.day/CVE-2025-46816.json · Rebuilt by cve.day 2026-11-25T22:58:57.670Z
