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.
Published: 2026-08-18
Score: 5.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A race condition in the share token handling allows an attacker to issue concurrent requests that each read the same download counter snapshot, pass the limit check, and obtain a copy of the file. This flaw lets an operator’s intended download cap be exceeded, potentially exhausting server resources and leading to denial of service.

Affected Systems

goshs, a simple HTTP server written in Go by patrickhener, is vulnerable in all releases before 2.1.0. The share link feature’s download limit logic is affected.

Risk and Exploitability

The CVSS score of 5.9 indicates medium severity, while the EPSS score is not available and the vulnerability is not listed in CISA KEV. Exploitation requires only the ability to send multiple simultaneous requests to a share link; no privileged access or other conditions are necessary. The attack can be mitigated primarily by upgrading to the patched version.

Generated by OpenCVE AI on August 18, 2026 at 16:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade goshs to version 2.1.0 or newer.
  • If an upgrade is delayed, limit the number of concurrent connections for share links to reduce the window for the race to occur.
  • If possible, disable or restrict the share link functionality until the update is applied.

Generated by OpenCVE AI on August 18, 2026 at 16:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-j48m-h7xq-2xpj goshs: Share-link ?token=… redemption races past download limit
History

Tue, 18 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
First Time appeared Patrickhener
Patrickhener goshs
Vendors & Products Patrickhener
Patrickhener goshs

Tue, 18 Aug 2026 15:15:00 +0000

Type Values Removed Values Added
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.
Title goshs: Share-link ?token=… redemption races past download limit
Weaknesses CWE-362
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

Patrickhener Goshs
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-19T14:34:47.743Z

Reserved: 2026-06-03T18:49:32.275Z

Link: CVE-2026-50139

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T15:16:54.733

Modified: 2026-08-19T15:17:08.173

Link: CVE-2026-50139

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T17:45:06Z

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')