Vulnerabilites related to patrickhener - goshs
CVE-2025-46816 (GCVE-0-2025-46816)
Vulnerability from cvelistv5
Published
2025-05-06 18:41
Modified
2025-05-06 19:23
Severity ?
VLAI Severity ?
EPSS score ?
CWE
Summary
goshs is a SimpleHTTPServer written in Go. Starting in version 0.3.4 and prior to version 1.0.5, running goshs without arguments makes it possible for anyone to execute commands on the server. The function `dispatchReadPump` does not checks the option cli `-c`, thus allowing anyone to execute arbitrary command through the use of websockets. Version 1.0.5 fixes the issue.
References
▼ | URL | Tags |
---|---|---|
https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm | x_refsource_CONFIRM | |
https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa | x_refsource_MISC |
Impacted products
Vendor | Product | Version | ||
---|---|---|---|---|
patrickhener | goshs |
Version: >= 0.3.4, < 1.0.5 |
{ "containers": { "adp": [ { "metrics": [ { "other": { "content": { "id": "CVE-2025-46816", "options": [ { "Exploitation": "poc" }, { "Automatable": "yes" }, { "Technical Impact": "total" } ], "role": "CISA Coordinator", "timestamp": "2025-05-06T19:18:18.182995Z", "version": "2.0.3" }, "type": "ssvc" } } ], "providerMetadata": { "dateUpdated": "2025-05-06T19:23:18.087Z", "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP" }, "title": "CISA ADP Vulnrichment" } ], "cna": { "affected": [ { "product": "goshs", "vendor": "patrickhener", "versions": [ { "status": "affected", "version": "\u003e= 0.3.4, \u003c 1.0.5" } ] } ], "descriptions": [ { "lang": "en", "value": "goshs is a SimpleHTTPServer written in Go. Starting in version 0.3.4 and prior to version 1.0.5, running goshs without arguments makes it possible for anyone to execute commands on the server. The function `dispatchReadPump` does not checks the option cli `-c`, thus allowing anyone to execute arbitrary command through the use of websockets. Version 1.0.5 fixes the issue." } ], "metrics": [ { "cvssV3_0": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "LOW", "baseScore": 9.4, "baseSeverity": "CRITICAL", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "scope": "UNCHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L", "version": "3.0" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-284", "description": "CWE-284: Improper Access Control", "lang": "en", "type": "CWE" } ] }, { "descriptions": [ { "cweId": "CWE-77", "description": "CWE-77: Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2025-05-06T18:41:58.035Z", "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "shortName": "GitHub_M" }, "references": [ { "name": "https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm", "tags": [ "x_refsource_CONFIRM" ], "url": "https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm" }, { "name": "https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa", "tags": [ "x_refsource_MISC" ], "url": "https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa" } ], "source": { "advisory": "GHSA-rwj2-w85g-5cmm", "discovery": "UNKNOWN" }, "title": "goshs route not protected, allows command execution" } }, "cveMetadata": { "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa", "assignerShortName": "GitHub_M", "cveId": "CVE-2025-46816", "datePublished": "2025-05-06T18:41:58.035Z", "dateReserved": "2025-04-30T19:41:58.133Z", "dateUpdated": "2025-05-06T19:23:18.087Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1" }