CVE-2026-50139: goshs: Share-link ?token=… redemption races past download limit
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.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-50139 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →