Skip to content

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

MediumCVSS 5.9 EPSS 0.26%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 0 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
goshs.de/goshs/v2(Go) < 2.1.0; <= 2.0.9; All versions 2.1.0 Partially fixed
patrickhener goshs = < 2.1.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
goshs.de/goshs/v2(Go) < 2.1.0 2.1.0
goshs.de/goshs/v2(Go) All versions No fix listed
patrickhener goshs = < 2.1.0 No fix listed
goshs.de/goshs/v2(Go) <= 2.0.9 No fix listed

References