goshs route not protected, allows command execution
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| patrickhener | goshs | 0.3.4 to before 1.0.5 | 1.0.5 | Patch available | CNA |
| — | github.com/patrickhener/goshs (Go) | 0.3.4 to before 1.0.5 | 1.0.5 | Patch available | GHSA-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.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| 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
- 2026-10-02 Threatist record created from CVE-2025-46816
- 2026-10-03 Alias added: GHSA-rwj2-w85g-5cmm
References
More patrickhener vulnerabilities
- 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
Sources
- CVE-2025-46816 · CVE Program
- CVE-2025-46816 · NVD
- FIRST EPSS
- GHSA-rwj2-w85g-5cmm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences