{"cve":"CVE-2026-50139","nvd":{"published":"2026-08-18T15:16:54.733","modified":"2026-10-22T22:10:00.250","status":"Deferred","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_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-362"],"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"],"products":[],"source":"nvd","synced_at":"2026-10-23T16:39:26.291718493+00:00"},"epss":{"cve":"CVE-2026-50139","score":0.00256,"percentile":0.1713,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-j48m-h7xq-2xpj","url":"https://osv.dev/vulnerability/GHSA-j48m-h7xq-2xpj","summary":"goshs: Share-link ?token=… redemption races past download limit","modified":"2026-07-07T16:11:27.223136756Z","packages":[{"ecosystem":"Go","name":"goshs.de/goshs/v2","purl":"pkg:golang/goshs.de/goshs/v2","ranges":["<2.1.0"],"fixed":["2.1.0"]}]},{"id":"GO-2026-5881","url":"https://osv.dev/vulnerability/GO-2026-5881","summary":"goshs: Share-link ?token=… redemption races past download limit in goshs.de/goshs","modified":"2026-07-07T16:00:42.736740348Z","packages":[{"ecosystem":"Go","name":"goshs.de/goshs","purl":"pkg:golang/goshs.de/goshs","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"goshs.de/goshs/v2","purl":"pkg:golang/goshs.de/goshs/v2","ranges":["<2.1.0"],"fixed":["2.1.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}