Skip to content

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

CriticalCVSS 9.4 EPSS 0.75%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
patrickhener goshs(Go) >= 0.3.4, < 1.0.5; >= 0.3.4, <= 1.0.4 1.0.5 Fixed
patrickhener goshs = >= 0.3.4, < 1.0.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
patrickhener goshs(Go) >= 0.3.4, < 1.0.5 1.0.5
patrickhener goshs(Go) >= 0.3.4, <= 1.0.4 No fix listed
patrickhener goshs = >= 0.3.4, < 1.0.5 No fix listed

References