Vulnerability · Published Aug 18, 2026 · Assigned by GitHub_M
CVE-2026-50139goshs: Share-link ?token=… redemption races past download limit
Medium 5.9
In plain English
A medium-severity race condition in goshs from patrickhener. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | goshs.de/goshs | no fix listed | GO-2026-5881 |
| Go | goshs.de/goshs/v2 | 2.1.0 | GHSA-j48m-h7xq-2xpj |
| Go | goshs.de/goshs/v2 | 2.1.0 | GO-2026-5881 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| patrickhener | goshs | < 2.1.0 |
Weakness: CWE-362 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-j48m-h7xq-2xpj x_refsource_CONFIRM