Skip to content
OpenAdvisories
Critical · 9.4 Public exploit CVE-2025-46816 EUVD-2025-13620GHSA-rwj2-w85g-5cmmGO-2025-3672

goshs route not protected, allows command execution

Published May 6, 2025 · Updated May 6, 2025 · 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.

Affected products

VendorProductAffectedFixed
patrickhener goshs >= 0.3.4, < 1.0.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250515T200012-1.1 openSUSE-SU-2025:15135-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/patrickhener/goshs >= 0.3.4, < 1.0.5 1.0.5 GHSA-rwj2-w85g-5cmm

Advisories 1

References