{"id":"CVE-2026-50139","sourceIdentifier":"security-advisories@github.com","published":"2026-08-18T15:16:54.733","lastModified":"2026-10-22T22:10:00.250","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"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."}],"affected":[{"source":"security-advisories@github.com","affectedData":[{"vendor":"patrickhener","product":"goshs","versions":[{"version":"< 2.1.0","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","baseScore":5.9,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE"},"exploitabilityScore":2.2,"impactScore":3.6}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-08-19T14:33:06.319046Z","id":"CVE-2026-50139","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Secondary","description":[{"lang":"en","value":"CWE-362"}]}],"references":[{"url":"https://github.com/goshs-labs/goshs/security/advisories/GHSA-j48m-h7xq-2xpj","source":"security-advisories@github.com"},{"url":"https://github.com/goshs-labs/goshs/security/advisories/GHSA-j48m-h7xq-2xpj","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}