{"id":"CVE-2025-46816","published":"2025-05-06T18:41:58Z","modified":"2025-05-06T19:23:18Z","title":"goshs route not protected, allows command execution","vendor":"patrickhener","product":"goshs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01135,"percentile":0.66221,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"},{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa","tags":["x_refsource_MISC"]}],"priority":{"score":24.8,"factors":[{"name":"EPSS percentile","points":13.24},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.58}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-06-04","earliestUrl":"https://github.com/Guilhem7/CVE-2025-46816","repos":[{"name":"Guilhem7/CVE-2025-46816","url":"https://github.com/Guilhem7/CVE-2025-46816","stars":4,"created":"2025-06-04"}]},"first":{"date":"2025-06-04","source":"PoC-in-GitHub","url":"https://github.com/Guilhem7/CVE-2025-46816"},"provenance":"source"},"vendorSlug":"patrickhener","affectedVersions":[{"vendor":"patrickhener","product":"goshs","versions":[">= 0.3.4, < 1.0.5"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-05-06T19:18:18.182995Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/patrickhener/goshs","vulnerableRanges":[">=0.3.4, <1.0.5"],"patched":["1.0.5"],"from":["GHSA-rwj2-w85g-5cmm","GO-2025-3672"],"provenance":"source"}],"summary":{"text":"goshs, a Go-based SimpleHTTPServer, has a flaw in its dispatchReadPump function, which fails to check the -c command-line option, in versions from 0.3.4 up to but not including 1.0.5. An attacker with network access can exploit this without authentication or user interaction, using websockets, to execute arbitrary commands on a server running goshs without arguments.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:27Z"},"euvd":{"id":"EUVD-2025-13620","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-46816","published":"2025-05-06","fixed":"1.0.5","kev":false},{"cve":"CVE-2026-35392","published":"2026-04-06","fixed":"1.1.5-0.20260401172448-237f3af891a9","kev":false,"link":{"from":"CVE-2025-46816","to":"CVE-2026-35392","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/patrickhener/goshs","fromFixed":"1.0.5","toFixed":"1.1.5-0.20260401172448-237f3af891a9","daysApart":335}]}},{"cve":"CVE-2026-35393","published":"2026-04-06","fixed":"1.1.5-0.20260401172448-237f3af891a9","kev":false,"link":{"from":"CVE-2025-46816","to":"CVE-2026-35393","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/patrickhener/goshs","fromFixed":"1.0.5","toFixed":"1.1.5-0.20260401172448-237f3af891a9","daysApart":335}]}},{"cve":"CVE-2026-35471","published":"2026-04-06","fixed":"1.1.5-0.20260401172448-237f3af891a9","kev":false,"link":{"from":"CVE-2025-46816","to":"CVE-2026-35471","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/patrickhener/goshs","fromFixed":"1.0.5","toFixed":"1.1.5-0.20260401172448-237f3af891a9","daysApart":335}]}}],"package":"Go:github.com/patrickhener/goshs"}}