Read the docs
TI-2025-29449 Aliases CVE-2025-46816GHSA-rwj2-w85g-5cmm

goshs route not protected, allows command execution

Priority HIGH 82CWE-284Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass, Code execution
Confidentiality · integrity · availability
High · High · Low
Fix status
Fixed

Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-284 and CWE-77.

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0075 55th percentileScored 2026-11-07
Fix Fixed goshs (patrickhener): 1.0.5github.com/patrickhener/goshs (Go): 1.0.5

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
patrickhenergoshs0.3.4 to before 1.0.51.0.5Patch availableCNA
—github.com/patrickhener/goshs (Go)0.3.4 to before 1.0.51.0.5Patch availableGHSA-rwj2-w85g-5cmm
  • goshs Vendorpatrickhener Affected 0.3.4 to before 1.0.5 Fixed in 1.0.5 Patch available CNA
  • github.com/patrickhener/goshs (Go) Vendor— Affected 0.3.4 to before 1.0.5 Fixed in 1.0.5 Patch available GHSA-rwj2-w85g-5cmm

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:goshs:goshs:*:*:*:*:*:*:*:*——patrickhener
  • cpe:2.3:a:goshs:goshs:*:*:*:*:*:*:*:* Versions — — ·patrickhener

Remediation

  • Fix · CNA goshs (patrickhener) Fixed in 1.0.5
  • Fix · GHSA-rwj2-w85g-5cmm github.com/patrickhener/goshs (Go) Fixed in 1.0.5 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-46816
  2. 2026-10-03 Alias added: GHSA-rwj2-w85g-5cmm

References

  • TI-2026-29540 goshs: Empty-username SFTP password authentication bypass in goshs CVSS 3.1CRITICAL 9.8
  • TI-2026-27601 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs CVSS 3.0CRITICAL 9.8
  • TI-2026-27529 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs POST multipart upload CVSS 3.0CRITICAL 9.8
  • TI-2026-27528 goshs has an Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs PUT Upload CVSS 3.0CRITICAL 9.8
  • TI-2026-29003 goshs has a file-based ACL authorization bypass in goshs state-changing routes CVSS 4.0CRITICAL 9.3
  • TI-2026-29532 SFTP root escape via prefix-based path validation in goshs CVSS 4.0HIGH 8.7
See all 14 →

Sources