---
title: "CVE-2025-46816: goshs route not protected, allows command execution"
url: https://erroneo.us/security/cve/CVE-2025-46816/
description: "CVE-2025-46816 (github.com/patrickhener/goshs (Go)): goshs is a SimpleHTTPServer written in Go. Starting in version 0.3.4 and prior to version 1.0.5…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-05-06
date_modified: 2025-05-06
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-46816"
kev: false
cvss: 9.4
epss: 0.00737
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.7% , percentile 54: FIRST’s model estimates a 0.7% chance of exploitation activity in the next 30 days, higher than 54% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes github.com/patrickhener/goshs (Go) >= 0.3.4, <= 1.0.4, fixed in 1.0.5 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Go `github.com/patrickhener/goshs` >= 0.3.4, <= 1.0.4 → fixed: 1.0.5

## Affected products (CVE record)

- patrickhener goshs: >= 0.3.4, < 1.0.5

## Severity

- GitHub_M CVSS 3.0: 9.4 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- GitHub CVSS 3.1: 9.4 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.74% probability of exploitation activity in the next 30 days; percentile 54.

## Sources

- [GitHub Advisory GHSA-rwj2-w85g-5cmm](https://github.com/advisories/GHSA-rwj2-w85g-5cmm)
- [CVE.org record CVE-2025-46816](https://www.cve.org/CVERecord?id=CVE-2025-46816)
- [NVD entry CVE-2025-46816](https://nvd.nist.gov/vuln/detail/CVE-2025-46816)
- [github.com](https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm)
- [github.com](https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa)

---
Source page: https://erroneo.us/security/cve/CVE-2025-46816/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
