CVE-2025-46816CWE-284CWE-77

goshs route not protected, allows command execution

Critical · published May 6, 2025

CVSS v3.0
9.4
EPSS
1%
Percentile
54.0
In the wild
Unconfirmed
What it is

🔥 A single command is all an attacker needs! In versions 0.3.4 to 1.0.4 of goshs, an oversight lets anyone execute server commands just by connecting via websockets! Think of it like a restaurant where the chef has forgotten to lock the kitchen door, allowing anyone who walks in to whip up whatever dish they fancy. It’s an open invitation to a recipe disaster! An attacker can waltz right into your server and execute arbitrary commands, which could lead to a full server compromise. This could mean data theft, loss of control over the server, or even turning it into a launching pad for further attacks!

Put simply

Think of it like a restaurant where the chef has forgotten to lock the kitchen door, allowing anyone who walks in to whip up whatever dish they fancy. It’s an open invitation to a recipe disaster! This vulnerability occurs because the `dispatchReadPump` function fails to validate the `-c` CLI option when running goshs without specific arguments. This lack of input validation allows attackers to send malicious commands through websockets, bypassing expected server checks.

What to do

An attacker can waltz right into your server and execute arbitrary commands, which could lead to a full server compromise. This could mean data theft, loss of control over the server, or even turning it into a launching pad for further attacks! Upgrade goshs immediately to version 1.0.5 or later to close this critical hole. Additionally, review your server configurations to ensure that only authorized users can access command execution features. Don't forget to audit your security policies regarding websocket connections! You've got this! Patch up your installation and secure your server like a pro! 🛡️

The record
Technical detail
CVSS v3.0
9.4 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00737 · 54.0th percentile
Weaknesses
CWE-284 · Improper Access Control; CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
Published
2025-05-06T18:41Z
EPSS history
Timeline
  • 06 MAY 18:41Z
    goshs route not protected, allows command execution
    cvelistv5