VDB

CVE-2025-46816

CVE-2025-46816 PUBLISHED CVSS 9.4 CRITICAL

goshs route not protected, allows command execution

Reported by github_m · Published May 6, 2025

github.com/patrickhener/goshs is fixed in 1.0.5 (Go Modules)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
github.com/patrickhener/goshsGo Modules1.0.5

Risk scores

CVSS 3.0
9.4
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

Affected products

VendorProductVersions
patrickhenergoshs>= 0.3.4, < 1.0.5
patrickhenergoshs0.3.4
github.compatrickhener/goshs0.3.4

Timeline

  • May 6, 2025 CVE Published
  • May 6, 2025 Coalition ESS Score (11 in total, the first dated here)
  • May 6, 2025 PoC Published (3 in total, the first dated here)
  • May 6, 2025 CVE Updated
  • May 7, 2025 EPSS Score (30 in total, the first dated here)
  • Dec 13, 2025 Security Advisory (2 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-46816
vulnetix vdb fixes CVE-2025-46816

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-46816/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›