Skip to main content
← All vulnerabilities
CVE-2025-46816GHSA-RWJ2-W85G-5CMMGO-2025-3672

goshs route not protected, allows command execution

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.0.5
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • patrickhener goshs

    From 0.3.4 · fixed in 1.0.5

  • github.com/patrickhener/goshsGo

    From 0.3.4 · fixed in 1.0.5

References 3

GitHub · patrickhener/goshs

GitHub · Guilhem7/CVE-2025-46816