{"id":"CVE-2026-35392","published":"2026-04-06T20:48:56Z","modified":"2026-04-07T16:19:28Z","title":"goshs has an Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs PUT Upload","vendor":"patrickhener","product":"goshs","tier":"tail","description":{"text":"goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.3, PUT upload in httpserver/updown.go has no path sanitization. This vulnerability is fixed in 2.0.0-beta.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00664,"percentile":0.52702,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/patrickhener/goshs/security/advisories/GHSA-g8mv-vp7j-qp64","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.4,"factors":[{"name":"EPSS percentile","points":10.54},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"patrickhener","affectedVersions":[{"vendor":"patrickhener","product":"goshs","versions":["< 2.0.0-beta.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-04-07T16:19:16.196298Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/patrickhener/goshs","vulnerableRanges":["<1.1.5-0.20260401172448-237f3af891a9"],"patched":["1.1.5-0.20260401172448-237f3af891a9"],"from":["GHSA-g8mv-vp7j-qp64","GO-2026-5394"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal weakness in the PUT upload handler (httpserver/updown.go) of goshs, a SimpleHTTPServer written in Go, where no path sanitization is performed. An attacker with network access and no authentication or user interaction can send PUT requests to write files outside the intended directory, which affects goshs versions prior to 2.0.0-beta.3.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:14Z"},"euvd":{"id":"EUVD-2026-19488","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-46816","published":"2025-05-06","fixed":"1.0.5","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-35392","published":"2026-04-06","fixed":"1.1.5-0.20260401172448-237f3af891a9","kev":false},{"cve":"CVE-2026-35393","published":"2026-04-06","fixed":"1.1.5-0.20260401172448-237f3af891a9","kev":false},{"cve":"CVE-2026-35471","published":"2026-04-06","fixed":"1.1.5-0.20260401172448-237f3af891a9","kev":false}],"package":"Go:github.com/patrickhener/goshs"}}