{"id":"CVE-2025-46816","state":"PUBLISHED","title":"goshs route not protected, allows command execution","description":"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.","publishedAt":"2025-05-06T18:41:58.035Z","updatedAt":"2025-05-06T19:23:18.087Z","severity":{"score":9.4,"label":"Critical","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["patrickhener goshs"],"affected":[{"vendor":"patrickhener","product":"goshs","versions":[{"version":">= 0.3.4, < 1.0.5","status":"affected"}]}],"references":["https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm","https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa"],"weaknesses":["CWE-284","CWE-77"],"ingestedAt":"2026-10-29T20:09:17.366Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/46xxx/CVE-2025-46816.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-46816","state":"PUBLISHED","datePublished":"2025-05-06T18:41:58.035Z","dateUpdated":"2025-05-06T19:23:18.087Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-04-30T19:41:58.133Z"},"containers":{"cna":{"title":"goshs route not protected, allows command execution","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."}],"affected":[{"vendor":"patrickhener","product":"goshs","versions":[{"version":">= 0.3.4, < 1.0.5","status":"affected"}]}],"references":[{"url":"https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm","name":"https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa","name":"https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa","tags":["x_refsource_MISC"]}],"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","lang":"en","description":"CWE-284: Improper Access Control","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-77","lang":"en","description":"CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-05-06T18:41:58.035Z"},"source":{"advisory":"GHSA-rwj2-w85g-5cmm","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-05-06T19:18:18.182995Z","id":"CVE-2025-46816","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-05-06T19:23:18.087Z"}}]}}}