CVE-2026-50139 goshs: Share-link ?token=… redemption races past download limit
MediumCVSS 5.9
EPSS 0.26%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
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.
Upgrade path
2 packages: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| goshs.de/goshs/v2(Go) | < 2.1.0; <= 2.0.9; All versions | 2.1.0 | Partially fixed |
| patrickhener goshs | = < 2.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| goshs.de/goshs/v2(Go) | < 2.1.0 | 2.1.0 |
| goshs.de/goshs/v2(Go) | All versions | No fix listed |
| patrickhener goshs | = < 2.1.0 | No fix listed |
| goshs.de/goshs/v2(Go) | <= 2.0.9 | No fix listed |
References
- github.com vendor-advisory
- github.com product
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-j48m-h7xq-2xpj exploit
- github.com
- ENISA EUVD EUVD-2026-60950 third-party-advisory