CVE-2026-50139

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.
Configurations

No configuration.

History

22 Oct 2026, 22:10

Type Values Removed Values Added
Summary
  • (es) goshs es un SimpleHTTPServer escrito en Go. Antes de la versión 2.1.0, ’ShareHandler’ lee el ’DownloadLimit’ del token de compartición bajo ’RLock’, libera el bloqueo, sirve el archivo y luego vuelve a adquirir el bloqueo para incrementar el contador. Las solicitudes concurrentes leen la misma instantánea de ’Downloaded’/’DownloadLimit’, todas pasan la verificación y todas son servidas - excediendo el límite previsto por el operador. La versión 2.1.0 corrige el problema.

Information

Published : 2026-08-18 15:16

Updated : 2026-10-22 22:10


NVD link : CVE-2026-50139

Mitre link : CVE-2026-50139

CVE.ORG link : CVE-2026-50139


JSON object : View

Products Affected

No product.

CWE
CWE-362

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