CVE-2025-46816

goshs route not protected, allows command execution

State
Published
Severity
9.4 Critical
Published
May 6, 2025
Updated
May 6, 2025
Reserved
Apr 30, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.09.4 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:LGitHub_M

Weaknesses

  • CWE-284 Improper Access Control
  • CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')

Affected Products

ProductVersions
goshspatrickhener
  • >= 0.3.4, < 1.0.5Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.