Exploit database

Vulnerability

CVE-2025-46816

goshs route not protected, allows command execution

Vulnerability details

Score
9.4
Severity
critical

CVSS 3.0 · GitHub_M

Vector string

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

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.

CVE Program

Exploit source choices

1 source
guilhem7/cve-2025-46816
GH-ba8e2a4ae1001f74e2d11de2c53f36a3GitHubUnofficial GitHub sourcePreferred

POC for exploit of goshs

2025-06-044 files · 4 stars