Security mailing lists by PureSourceCode

CVE-2026-50139

MEDIUM 5.9CVSS 3.1

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

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.

Published
18 Aug 2026
Last modified
22 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-362
Also known as
GHSA-j48m-h7xq-2xpjGO-2026-5881
Sources
NVDJSONOSV GHSA-j48m-h7xq-2xpjJSONOSV GO-2026-5881JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go goshs.de/goshs/v2 < 2.1.0 2.1.0
OSV Go goshs.de/goshs all versions

References

History

  • 25 Nov 2026 21:04 UTC · NVD: first stored (published 18 Aug 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jul 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.