CVE-2026-50139
MEDIUM 5.9CVSS 3.1goshs: Share-link ?token=… redemption races past download limit
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.
- Published
- 18 Aug 2026
- Last modified
- 22 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-362
- Also known as
- GHSA-j48m-h7xq-2xpjGO-2026-5881
- Sources
- NVDJSONOSV GHSA-j48m-h7xq-2xpjJSONOSV GO-2026-5881JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | goshs.de/goshs/v2 | < 2.1.0 | 2.1.0 |
| OSV | Go | goshs.de/goshs | all versions |
References
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-j48m-h7xq-2xpj
- https://github.com/patrickhener/goshs/security/advisories/GHSA-j48m-h7xq-2xpj · WEB, ADVISORY
- https://github.com/patrickhener/goshs · PACKAGE
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 18 Aug 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Jul 2026)