Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-j48m-h7xq-2xpj
- https://github.com/goshs-labs/goshs/security/advisories/GHSA-j48m-h7xq-2xpj
FAQ
What is CVE-2026-50139?
CVE-2026-50139 is a vulnerability with a CVSS score of 5.9 (MEDIUM). 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 t...
How severe is CVE-2026-50139?
CVE-2026-50139 has been rated MEDIUM with a CVSS base score of 5.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-50139?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.