{"id":"CVE-2026-50139","published":"2026-08-18T15:01:36Z","modified":"2026-08-19T14:34:47Z","title":"goshs: Share-link ?token=… redemption races past download limit","vendor":"patrickhener","product":"goshs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00256,"percentile":0.17636,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://github.com/goshs-labs/goshs/security/advisories/GHSA-j48m-h7xq-2xpj","tags":["x_refsource_CONFIRM"]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":3.53},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"patrickhener","affectedVersions":[{"vendor":"patrickhener","product":"goshs","versions":["< 2.1.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-19T14:33:06.319046Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"goshs.de/goshs/v2","vulnerableRanges":["<2.1.0"],"patched":["2.1.0"],"from":["GHSA-j48m-h7xq-2xpj","GO-2026-5881"],"provenance":"source"},{"ecosystem":"Go","package":"goshs.de/goshs","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5881"],"provenance":"source"}],"summary":{"text":"The goshs SimpleHTTPServer (Go) contains a race condition in its ShareHandler, which reads a share token's download limit under a read lock, releases it, serves the file, and only then increments the counter, so the limit is not enforced atomically. An attacker with network access to a goshs share link can send concurrent requests using the token, with no authentication or user interaction required, to download the file more times than the operator's configured download limit allows.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:51Z"},"euvd":{"id":"EUVD-2026-60950","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-42091","published":"2026-05-04","fixed":"2.0.2","kev":false,"link":{"from":"CVE-2026-42091","to":"CVE-2026-50139","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:goshs.de/goshs/v2","fromFixed":"2.0.2","toFixed":"2.1.0","daysApart":106}]}},{"cve":"CVE-2026-50138","published":"2026-08-18","fixed":"2.1.0","kev":false},{"cve":"CVE-2026-50139","published":"2026-08-18","fixed":"2.1.0","kev":false},{"cve":"CVE-2026-54719","published":"2026-07-28","fixed":"2.1.1","kev":false},{"cve":"CVE-2026-62325","published":"2026-07-28","fixed":"2.1.4","kev":false},{"cve":"CVE-2026-64863","published":"2026-07-28","fixed":"2.1.4","kev":false}],"package":"Go:goshs.de/goshs/v2"}}