{"id":"CVE-2026-35471","published":"2026-04-06T21:38:27Z","modified":"2026-04-07T16:22:49Z","title":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in goshs","vendor":"patrickhener","product":"goshs","tier":"tail","description":{"text":"goshs is a SimpleHTTPServer written in Go. Prior to 2.0.0-beta.3, tdeleteFile() missing return after path traversal check. 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-6qcc-6q27-whp8","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:22:40.861310Z","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-6qcc-6q27-whp8","GO-2026-5186"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal weakness (CWE: Improper Limitation of a Pathname to a Restricted Directory) in the goshs SimpleHTTPServer written in Go, specifically in its tdeleteFile() function, which lacks a return statement after its path traversal check. An attacker with network access and no authentication or user interaction can exploit it to reach files outside the intended directory, affecting goshs versions before 2.0.0-beta.3.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:15Z"},"euvd":{"id":"EUVD-2026-19539","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-patrickhener-goshs-cve-2026-35471","children":[{"from":"CVE-2026-35471","to":"CVE-2026-40189","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["httpserver/handler.go","httpserver/updown.go"],"commits":["https://github.com/patrickhener/goshs/commit/237f3af891a90df9b903b85f1cd3438040ca261a","https://github.com/patrickhener/goshs/commit/f212c4f4a126556bab008f79758e21a839ef2c0f"],"basis":"shared function","functions":["handleMkdir","put","upload"]}]},{"from":"CVE-2026-35471","to":"CVE-2026-42091","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["httpserver/handler.go","httpserver/updown.go"],"commits":["https://github.com/patrickhener/goshs/commit/237f3af891a90df9b903b85f1cd3438040ca261a","https://github.com/patrickhener/goshs/commit/0e715b94e10c3d1aa552276000f15f104dee2f32"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-46816","published":"2025-05-06","fixed":"1.0.5","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}]}},{"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"}}