Loading advisory.
Loading advisory.
goshs route not protected, allows command execution
It seems that when running goshs without arguments it is possible for anyone to execute commands on the server. This was tested on version 1.0.4 of goshs. The command function was introduced in version 0.3.4.
Published 2025-05-06 16:45 UTC · Modified 2026-03-03 04:56 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/patrickhener/goshs | Go | >= 0.3.4, < 1.0.5 | 1.0.5 | go get github.com/patrickhener/goshs@v1.0.5 |
It seems that when running goshs without arguments it is possible for anyone to execute commands on the server. This was tested on version 1.0.4 of goshs. The command function was introduced in version 0.3.4.
It seems that the function dispatchReadPump does not checks the option cli -c, thus allowing anyone to execute arbitrary command through the use of websockets.
Used websocat for the POC:
echo -e '{"type": "command", "content": "id"}' |./websocat 'ws://192.168.1.11:8000/?ws' -tThe vulnerability will only impacts goshs server on vulnerable versions.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.007 on 2026-11-24 to 0.012 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.007 | first score | v2026.06.15 |
| 2026-11-26 | 0.011 | 0.007 | v2026.06.15 |
| 2026-11-30 | 0.012 | 0.011 | v2026.06.15 |