Improper Neutralization of Special Elements used in a Command ('Command Injection')
CVE-2025-46816
Summary
The goshs package is a SimpleHTTPServer written in Go. In versions 0.3.4 through 1.0.4, running goshs without arguments allows anyone to execute commands on the server. The function "dispatchReadPump" does not check the CLI option "-c", thereby allowing arbitrary command execution through the use of WebSockets.
- LOW
- NETWORK
- HIGH
- UNCHANGED
- NONE
- NONE
- HIGH
- LOW
CWE-77 - Command Injection
A command injection attack involves injecting an operating system command through the data input, which gets executed on the host operating system with the privileges of the victimized application. The impact of a command injection attack may range from loss of data confidentiality and integrity to unauthorized remote access to the hosting system. The attack may cause serious data breaches and system takeover.
References
Advisory Timeline
- Published