CVE-2026-50139patrickhener goshs
Medium 5.9 No auth needed
Follow: this CVE · patrickhener · patrickhener goshs We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.1
- 5.9
- EPSS
- —
- Auth required
- No
- Published
- Aug 18, 2026
- Updated
- Oct 22, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-362
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for goshs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | goshs.de/goshs |
all |
no fixed version | — |
| Go | goshs.de/goshs/v2 |
< 2.1.0 |
2.1.0 |
go get goshs.de/goshs/v2@v2.1.0 |
| Go | goshs.de/goshs/v2 |
< 2.1.0 |
2.1.0 |
go get goshs.de/goshs/v2@v2.1.0 |
Per OSV / GitHub Advisories (GO-2026-5881, GHSA-j48m-h7xq-2xpj). Check the version in your lockfile before upgrading.
Affected products
- patrickhener · goshs
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.