CVE-2026-50139
Full vulnerability record from the local CVENow database.
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.
Severity
MEDIUM
CVSS score
5.9
(v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-08-18 15:16:54.733000
Last modified
2026-10-22 22:10:00.250000
View original CVE JSON
{
"id": "CVE-2026-50139",
"sourceIdentifier": "[email protected]",
"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": "[email protected]",
"affectedData": [
{
"vendor": "patrickhener",
"product": "goshs",
"versions": [
{
"version": "< 2.1.0",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"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": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-362"
}
]
}
],
"references": [
{
"url": "https://github.com/goshs-labs/goshs/security/advisories/GHSA-j48m-h7xq-2xpj",
"source": "[email protected]"
},
{
"url": "https://github.com/goshs-labs/goshs/security/advisories/GHSA-j48m-h7xq-2xpj",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
}
]
}