{"id":"CVE-2026-50139","revision":"085b404c72034484a6a76a41f6df5d48","records":[{"revision":"085b404c72034484a6a76a41f6df5d48","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-50139","aliases":[],"title":"goshs: Share-link ?token=… redemption races past download limit","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.","state":0,"publishedAt":"2026-08-18T15:01:36.9+00:00","modifiedAt":"2026-08-19T14:34:47.743+00:00","affected":[{"ecosystem":"Vendor product","name":"goshs","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"patrickhener\",\n                    \"product\": \"goshs\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.1.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"severity":"MEDIUM"}],"references":["https://github.com/goshs-labs/goshs/security/advisories/GHSA-j48m-h7xq-2xpj"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-50139","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-50139","identifiers":["CVE-2026-50139"]},"retained":false,"historicalAffected":[]}],"coverage":[]}