goshs: Share-link ?token=… redemption races past download limit
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
goshs is a SimpleHTTPServer written in Go. Prior to version 2.1.0, `ShareHandler` reads the share token's `DownloadLimit` under `RLock`, releases the lock, serves the file, then re-acquires the lock to increment the counter. Concurrent requests all read the same `Downloaded`/`DownloadLimit` snapshot, all pass the check, and all are served — exceeding the operator's intended cap. Version 2.1.0 patches the issue.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
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 | before 2.1.0 | 2.1.0 | Patch available | CNA |
| — | goshs.de/goshs/v2 (Go) | before 2.1.0 | 2.1.0 | Patch available | GHSA-j48m-h7xq-2xpj |
- goshs Vendorpatrickhener Affected before 2.1.0 Fixed in 2.1.0 Patch available CNA
- goshs.de/goshs/v2 (Go) Vendor— Affected before 2.1.0 Fixed in 2.1.0 Patch available GHSA-j48m-h7xq-2xpj
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 2.1.0
- Fix · GHSA-j48m-h7xq-2xpj goshs.de/goshs/v2 (Go) Fixed in 2.1.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-50139
- 2026-10-03 Alias added: GHSA-j48m-h7xq-2xpj
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-2025-29449 goshs route not protected, allows command execution CVSS 3.0CRITICAL 9.4
- TI-2026-29003 goshs has a file-based ACL authorization bypass in goshs state-changing routes CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-50139 · CVE Program
- CVE-2026-50139 · NVD
- FIRST EPSS
- GHSA-j48m-h7xq-2xpj · 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