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.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.3%top 82.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogoshs.de/goshsno fix listedGO-2026-5881
Gogoshs.de/goshs/v22.1.0GHSA-j48m-h7xq-2xpj
Gogoshs.de/goshs/v22.1.0GO-2026-5881

Affected products (as reported)

VendorProductVersions
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