CVE-2025-46816
CRITICALgoshs 0.3.4-1.0.4 - Unauthenticated Remote Code Execution via WebSocket Command Injection
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2025-46816. PoCs published by Guilhem7.
AI-analyzed exploit summary This PoC exploits an unauthenticated code execution vulnerability in goshs versions < 1.0.5 via WebSocket command injection. It establishes a connection to a target WebSocket endpoint and allows arbitrary command execution through a JSON payload.
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.
Exploits (1)
This PoC exploits an unauthenticated code execution vulnerability in goshs versions < 1.0.5 via WebSocket command injection. It establishes a connection to a target WebSocket endpoint and allows arbitrary command execution through a JSON payload.
References (2)
Scores
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L