Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-50139 EUVD-2026-60950GHSA-j48m-h7xq-2xpjGO-2026-5881

goshs: Share-link ?token=… redemption races past download limit

Published Aug 18, 2026 · Updated Aug 19, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
patrickhener goshs < 2.1.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go goshs.de/goshs all versions — GO-2026-5881
Go goshs.de/goshs/v2 < 2.1.0 2.1.0 GHSA-j48m-h7xq-2xpj

Advisories 1

References