Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. goshs.de/goshs/v2
  4. ›
  5. CVE-2026-50139

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

July 1, 2026

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

  • github.com/advisories/GHSA-j48m-h7xq-2xpj
  • github.com/patrickhener/goshs/security/advisories/GHSA-j48m-h7xq-2xpj
  • nvd.nist.gov/vuln/detail/CVE-2026-50139

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 →

Affected versions

All versions before 2.1.0

Fixed versions

  • 2.1.0

Solution

Upgrade to version 2.1.0 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

go/goshs.de/goshs/v2/CVE-2026-50139.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 12 Jul 2026 12:17:07 +0000.