CVE-2026-50139

MEDIUM CVSS 3.1: 5.9 EPSS 0.26%
Updated Oct 23, 2026
goshs
Parameter Value
CVSS 5.9 (MEDIUM)
Type CWE-362 (Race Condition)
Vendor goshs
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
High
Difficult to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v3.1

Weakness Type (CWE)